Browse Source

Merge pull request #1131 from nocodb/fix/percent-type-in-pg

fix : percent type in postgres.
pull/1136/head
navi 3 years ago committed by GitHub
parent
commit
8d67e24fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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