Skip to content

Commit ab456c1

Browse files
authored
HCK-10442: add config to properly convert hasMaxLength property for varbinary (#56)
* HCK-10442: added config to properly convert hasMaxLength property for varbinary * HCK-10442: remove redundant data
1 parent bbf7993 commit ab456c1

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

polyglot/adapter.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
*
3+
* {
4+
* "add": {
5+
* "entity": [<names of new property>],
6+
* "container": [<names of new property>],
7+
* "model": [<names of new property>],
8+
* "view": [<names of new property>],
9+
* "field": {
10+
* "<type>": [<names of new property>]
11+
* }
12+
* },
13+
* "delete": {
14+
* "entity": [<names of new property>],
15+
* "container": [<names of new property>],
16+
* "model": [<names of new property>],
17+
* "view": [<names of new property>],
18+
* "field": {
19+
* "<type>": [<names of new property>]
20+
* }
21+
* },
22+
* "modify": {
23+
* "entity": [
24+
* {
25+
* "from": { <properties that identify record> },
26+
* "to": { <properties that need to be changed> }
27+
* }
28+
* ],
29+
* "container": [],
30+
* "model": [],
31+
* "view": [],
32+
* "field": []
33+
* },
34+
* }
35+
*/
36+
{
37+
"modify": {
38+
"field": [
39+
{
40+
"from": {
41+
"type": "binary",
42+
"mode": "varbinary",
43+
"hasMaxLength": true
44+
},
45+
"to": {
46+
"length": 1024000
47+
}
48+
}
49+
]
50+
}
51+
}

polyglot/convertAdapter.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/**
2+
*
3+
* {
4+
* "add": {
5+
* "entity": [<names of new property>],
6+
* "container": [<names of new property>],
7+
* "model": [<names of new property>],
8+
* "view": [<names of new property>],
9+
* "field": {
10+
* "<type>": [<names of new property>]
11+
* }
12+
* },
13+
* "delete": {
14+
* "entity": [<names of new property>],
15+
* "container": [<names of new property>],
16+
* "model": [<names of new property>],
17+
* "view": [<names of new property>],
18+
* "field": {
19+
* "<type>": [<names of new property>]
20+
* }
21+
* },
22+
* "modify": {
23+
* "entity": [
24+
* {
25+
* "from": { <properties that identify record> },
26+
* "to": { <properties that need to be changed> }
27+
* }
28+
* ],
29+
* "container": [],
30+
* "model": [],
31+
* "view": [],
32+
* "field": []
33+
* },
34+
* }
35+
*/
36+
{
37+
"modify": {
38+
"field": [
39+
{
40+
"from": {
41+
"type": "varbyte",
42+
"length": 1024000
43+
},
44+
"to": {
45+
"hasMaxLength": true
46+
}
47+
}
48+
]
49+
}
50+
}

0 commit comments

Comments
 (0)