Skip to content

Commit c39cc88

Browse files
committed
enable json types on char when length greater than 4000 or has max length
1 parent a9318e1 commit c39cc88

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "SQLServer",
3-
"version": "0.1.3",
4-
"versionDate": "2020-05-12",
3+
"version": "0.1.4",
4+
"versionDate": "2020-05-14",
55
"author": "hackolade",
66
"engines": {
77
"hackolade": "4.0.0",

properties_pane/field_level/fieldLevelConfig.json

+48-48
Original file line numberDiff line numberDiff line change
@@ -138,54 +138,6 @@ making sure that you maintain a proper JSON format.
138138
"valueType": "string",
139139
"cleanDependency": true
140140
},
141-
{
142-
"propertyName": "JSON Type",
143-
"propertyKeyword": "physicalType",
144-
"propertyType": "select",
145-
"hidden": true
146-
},
147-
{
148-
"propertyName": "JSON Types",
149-
"propertyKeyword": "subtype",
150-
"propertyType": "select",
151-
"dependency": {
152-
"type": "and",
153-
"values": [
154-
{
155-
"type": "or",
156-
"values": [
157-
{
158-
"key": "hasMaxLength",
159-
"value": true
160-
},
161-
{
162-
"key": "length",
163-
"minimum": 4000
164-
}
165-
]
166-
},
167-
{
168-
"type": "or",
169-
"values": [
170-
{
171-
"key": "mode",
172-
"value": "nvarchar"
173-
},
174-
{
175-
"key": "mode",
176-
"value": "varchar"
177-
}
178-
]
179-
}
180-
]
181-
},
182-
"options": [
183-
{ "name": " ", "value": "string" },
184-
{ "name": "object", "value": "object" },
185-
{ "name": "array", "value": "array" }
186-
],
187-
"defaultValue": "string"
188-
},
189141
{
190142
"propertyName": "Has max length",
191143
"propertyKeyword": "hasMaxLength",
@@ -271,6 +223,54 @@ making sure that you maintain a proper JSON format.
271223
}]
272224
}]
273225
},
226+
{
227+
"propertyName": "JSON Type",
228+
"propertyKeyword": "physicalType",
229+
"propertyType": "select",
230+
"hidden": true
231+
},
232+
{
233+
"propertyName": "JSON Types",
234+
"propertyKeyword": "subtype",
235+
"propertyType": "select",
236+
"dependency": {
237+
"type": "and",
238+
"values": [
239+
{
240+
"type": "or",
241+
"values": [
242+
{
243+
"key": "hasMaxLength",
244+
"value": true
245+
},
246+
{
247+
"key": "length",
248+
"minimum": 4000
249+
}
250+
]
251+
},
252+
{
253+
"type": "or",
254+
"values": [
255+
{
256+
"key": "mode",
257+
"value": "nvarchar"
258+
},
259+
{
260+
"key": "mode",
261+
"value": "varchar"
262+
}
263+
]
264+
}
265+
]
266+
},
267+
"options": [
268+
{ "name": " ", "value": "string" },
269+
{ "name": "object", "value": "object" },
270+
{ "name": "array", "value": "array" }
271+
],
272+
"defaultValue": "string"
273+
},
274274
"default",
275275
{
276276
"propertyName": "Default constraint name",

0 commit comments

Comments
 (0)