Skip to content

Commit

Permalink
Merge pull request #2492 from ssine/feat/pg-jsonb
Browse files Browse the repository at this point in the history
feat: json inference and jsonb saving for postgresql
  • Loading branch information
pranavxc committed Jun 28, 2022
2 parents eb43257 + f719456 commit c12cd45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
Expand Up @@ -1740,7 +1740,7 @@ export class PgUi {
return ['json', 'char', 'character', 'character varying', 'text'];

case 'JSON':
return ['json', 'text'];
return ['json', 'jsonb', 'text'];
case 'Checkbox':
return [
'bit',
Expand Down
Expand Up @@ -439,7 +439,7 @@ class ModelXcMetaPg extends BaseModelXcMeta {
case 'set':
return 'MultiSelect';
case 'json':
return 'LongText';
return 'JSON';
case 'blob':
return 'LongText';
case 'geometry':
Expand Down Expand Up @@ -512,9 +512,8 @@ class ModelXcMetaPg extends BaseModelXcMeta {
case 'interval':
return 'string';
case 'json':
return 'json';
case 'jsonb':
return 'string';
return 'json';

case 'language_handler':
case 'lsec':
Expand Down

0 comments on commit c12cd45

Please sign in to comment.