Browse Source

fix : percent type in postgres.

re #1129

Signed-off-by: Naveen MR <oof1lab@gmail.com>
pull/1131/head
Naveen MR 3 years ago
parent
commit
dfa6249bd8
  1. 2
      packages/nc-gui/helpers/sqlUi/PgUi.js
  2. 2
      packages/nocodb/src/lib/sqlUi/PgUi.ts

2
packages/nc-gui/helpers/sqlUi/PgUi.js

@ -1609,7 +1609,7 @@ export class PgUi {
colProp.validate = { func: ['isCurrency'], args: [''], msg: ['Validation failed : Invalid Currency Format'] } colProp.validate = { func: ['isCurrency'], args: [''], msg: ['Validation failed : Invalid Currency Format'] }
break break
case 'Percent': case 'Percent':
colProp.dt = 'double' colProp.dt = 'float8'
break break
case 'Duration': case 'Duration':
colProp.dt = 'int8' colProp.dt = 'int8'

2
packages/nocodb/src/lib/sqlUi/PgUi.ts

@ -1644,7 +1644,7 @@ export class PgUi {
}; };
break; break;
case 'Percent': case 'Percent':
colProp.dt = 'double'; colProp.dt = 'float8';
break; break;
case 'Duration': case 'Duration':
colProp.dt = 'int8'; colProp.dt = 'int8';

Loading…
Cancel
Save