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'] }
break
case 'Percent':
colProp.dt = 'double'
colProp.dt = 'float8'
break
case 'Duration':
colProp.dt = 'int8'

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

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

Loading…
Cancel
Save