Browse Source

fix: disable anyenum as it's pseudo-type - ref: #1539

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1546/head
Wing-Kam Wong 3 years ago
parent
commit
47a5131c15
  1. 1
      packages/nc-gui/helpers/sqlUi/PgUi.js
  2. 2
      packages/noco-docs/content/en/setup-and-usages/column-types.md
  3. 2
      packages/nocodb/src/lib/sqlUi/PgUi.ts

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

@ -1715,7 +1715,6 @@ export class PgUi {
case 'SingleSelect': case 'SingleSelect':
return [ return [
'anyenum',
'text' 'text'
] ]

2
packages/noco-docs/content/en/setup-and-usages/column-types.md

@ -145,7 +145,7 @@ menuTitle: 'Column Types'
|Database| Types| Default Type| |Database| Types| Default Type|
|-----|----------|----------| |-----|----------|----------|
|**MySQL**|enum, text, tinytext, mediumtext, longtext|enum| |**MySQL**|enum, text, tinytext, mediumtext, longtext|enum|
|**PostgreSQL**|anyenum, text|text| |**PostgreSQL**|text|
|**SQL Server**|text, ntext|text| |**SQL Server**|text, ntext|text|
|**SQLite**|text, varchar|text| |**SQLite**|text, varchar|text|

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

@ -1733,7 +1733,7 @@ export class PgUi {
return ['text']; return ['text'];
case 'SingleSelect': case 'SingleSelect':
return ['anyenum', 'text']; return ['text'];
case 'Year': case 'Year':
return ['int']; return ['int'];

Loading…
Cancel
Save