|
|
|
@ -620,7 +620,8 @@ export class MssqlUi {
|
|
|
|
|
} { |
|
|
|
|
const colProp: any = {}; |
|
|
|
|
switch (col.uidt) { |
|
|
|
|
case 'ID': { |
|
|
|
|
case 'ID': |
|
|
|
|
{ |
|
|
|
|
const isAutoIncId = idType === 'AI'; |
|
|
|
|
const isAutoGenId = idType === 'AG'; |
|
|
|
|
colProp.dt = isAutoGenId ? 'varchar' : 'int'; |
|
|
|
@ -628,7 +629,7 @@ export class MssqlUi {
|
|
|
|
|
colProp.un = isAutoIncId; |
|
|
|
|
colProp.ai = isAutoIncId; |
|
|
|
|
colProp.rqd = true; |
|
|
|
|
colProp.meta = isAutoGenId ? {ag: 'nc'} : undefined; |
|
|
|
|
colProp.meta = isAutoGenId ? { ag: 'nc' } : undefined; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case 'ForeignKey': |
|
|
|
@ -908,6 +909,6 @@ export class MssqlUi {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static getUnsupportedFnList() { |
|
|
|
|
return []; |
|
|
|
|
return ['XOR', 'REGEX_MATCH', 'REGEX_EXTRACT', 'REGEX_REPLACE', 'VALUE']; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|