Browse Source

feat: set default value of rating field as 0

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4885/head
Pranav C 2 years ago
parent
commit
0f2398b30b
  1. 1
      packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts
  2. 1
      packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts
  3. 1
      packages/nocodb-sdk/src/lib/sqlUi/OracleUi.ts
  4. 1
      packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
  5. 1
      packages/nocodb-sdk/src/lib/sqlUi/SnowflakeUi.ts
  6. 1
      packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

1
packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts

@ -1151,6 +1151,7 @@ export class MssqlUi {
break; break;
case 'Rating': case 'Rating':
colProp.dt = 'int'; colProp.dt = 'int';
colProp.cdf = '0';
break; break;
case 'Formula': case 'Formula':
colProp.dt = 'varchar'; colProp.dt = 'varchar';

1
packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts

@ -1049,6 +1049,7 @@ export class MysqlUi {
break; break;
case 'Rating': case 'Rating':
colProp.dt = 'int'; colProp.dt = 'int';
colProp.cdf = '0';
break; break;
case 'Formula': case 'Formula':
colProp.dt = 'varchar'; colProp.dt = 'varchar';

1
packages/nocodb-sdk/src/lib/sqlUi/OracleUi.ts

@ -891,6 +891,7 @@ export class OracleUi {
break; break;
case 'Rating': case 'Rating':
colProp.dt = 'integer'; colProp.dt = 'integer';
colProp.cdf = '0';
break; break;
case 'Formula': case 'Formula':
colProp.dt = 'varchar'; colProp.dt = 'varchar';

1
packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts

@ -1663,6 +1663,7 @@ export class PgUi {
break; break;
case 'Rating': case 'Rating':
colProp.dt = 'smallint'; colProp.dt = 'smallint';
colProp.cdf = '0';
break; break;
case 'Formula': case 'Formula':
colProp.dt = 'character varying'; colProp.dt = 'character varying';

1
packages/nocodb-sdk/src/lib/sqlUi/SnowflakeUi.ts

@ -754,6 +754,7 @@ export class SnowflakeUi {
break; break;
case 'Rating': case 'Rating':
colProp.dt = 'SMALLINT'; colProp.dt = 'SMALLINT';
colProp.cdf = '0';
break; break;
case 'Formula': case 'Formula':
colProp.dt = 'VARCHAR'; colProp.dt = 'VARCHAR';

1
packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

@ -856,6 +856,7 @@ export class SqliteUi {
break; break;
case 'Rating': case 'Rating':
colProp.dt = 'integer'; colProp.dt = 'integer';
colProp.cdf = '0';
break; break;
case 'Formula': case 'Formula':
colProp.dt = 'varchar'; colProp.dt = 'varchar';

Loading…
Cancel
Save