Browse Source

Merge pull request #1938 from titouancreach/fix/1930-allow-edit-length-of-nvarchar

fix: allow to edit the length of a nvarchar (mssql). #1930
pull/1952/head
navi 3 years ago committed by GitHub
parent
commit
cf5f6c9e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts

5
packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts

@ -337,7 +337,7 @@ export class MssqlUi {
return '';
case 'nvarchar':
return '';
return 255;
case 'real':
return '';
@ -391,6 +391,9 @@ export class MssqlUi {
static getDefaultLengthIsDisabled(type) {
switch (type) {
case 'nvarchar':
return false;
case 'bigint':
case 'binary':
case 'bit':

Loading…
Cancel
Save