Browse Source

fix: allow to edit the length of a nvarchar (mssql). #1930

pull/1938/head
Titouan CREACH 3 years ago
parent
commit
2b88c3d3c7
  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 ''; return '';
case 'nvarchar': case 'nvarchar':
return ''; return 255;
case 'real': case 'real':
return ''; return '';
@ -391,6 +391,9 @@ export class MssqlUi {
static getDefaultLengthIsDisabled(type) { static getDefaultLengthIsDisabled(type) {
switch (type) { switch (type) {
case 'nvarchar':
return false;
case 'bigint': case 'bigint':
case 'binary': case 'binary':
case 'bit': case 'bit':

Loading…
Cancel
Save