From 2330ea5e32a276e90b72bab22fabc4c394d26ffb Mon Sep 17 00:00:00 2001 From: Eladio Mora <8742215+ejose19@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:09:52 -0300 Subject: [PATCH] refactor: add numeric type to more pg column types Signed-off-by: Eladio Mora <8742215+ejose19@users.noreply.github.com> --- packages/nc-gui/helpers/sqlUi/PgUi.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/helpers/sqlUi/PgUi.js b/packages/nc-gui/helpers/sqlUi/PgUi.js index d204ac06b6..4f354a8363 100644 --- a/packages/nc-gui/helpers/sqlUi/PgUi.js +++ b/packages/nc-gui/helpers/sqlUi/PgUi.js @@ -1760,14 +1760,16 @@ export class PgUi { 'float4', 'float8', 'smallint', - 'smallserial' + 'smallserial', + 'numeric', ] case 'Decimal': return [ 'double precision', 'float4', - 'float8' + 'float8', + 'numeric', ] case 'Currency': @@ -1784,7 +1786,9 @@ export class PgUi { 'serial8', 'double precision', 'money', 'float4', - 'float8'] + 'float8', + 'numeric', + ] case 'Percent': return [ @@ -1802,7 +1806,8 @@ export class PgUi { 'float4', 'float8', 'smallint', - 'smallserial' + 'smallserial', + 'numeric', ] case 'Duration': @@ -1821,7 +1826,9 @@ export class PgUi { 'float4', 'float8', 'smallint', - 'smallserial'] + 'smallserial', + 'numeric', + ] case 'Rating': return [ @@ -1839,7 +1846,9 @@ export class PgUi { 'float4', 'float8', 'smallint', - 'smallserial'] + 'smallserial', + 'numeric', + ] case 'Formula': return [