|
|
@ -131,9 +131,9 @@ export class PgUi { |
|
|
|
{ |
|
|
|
{ |
|
|
|
column_name: 'title', |
|
|
|
column_name: 'title', |
|
|
|
title: 'Title', |
|
|
|
title: 'Title', |
|
|
|
dt: 'character varying', |
|
|
|
dt: 'TEXT', |
|
|
|
dtx: 'specificType', |
|
|
|
dtx: 'specificType', |
|
|
|
ct: 'varchar(45)', |
|
|
|
ct: null, |
|
|
|
nrqd: true, |
|
|
|
nrqd: true, |
|
|
|
rqd: false, |
|
|
|
rqd: false, |
|
|
|
ck: false, |
|
|
|
ck: false, |
|
|
@ -141,10 +141,10 @@ export class PgUi { |
|
|
|
un: false, |
|
|
|
un: false, |
|
|
|
ai: false, |
|
|
|
ai: false, |
|
|
|
cdf: null, |
|
|
|
cdf: null, |
|
|
|
clen: 45, |
|
|
|
clen: null, |
|
|
|
np: null, |
|
|
|
np: null, |
|
|
|
ns: null, |
|
|
|
ns: null, |
|
|
|
dtxp: '45', |
|
|
|
dtxp: '', |
|
|
|
dtxs: '', |
|
|
|
dtxs: '', |
|
|
|
altered: 1, |
|
|
|
altered: 1, |
|
|
|
uidt: 'SingleLineText', |
|
|
|
uidt: 'SingleLineText', |
|
|
@ -249,9 +249,9 @@ export class PgUi { |
|
|
|
static getNewColumn(suffix) { |
|
|
|
static getNewColumn(suffix) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
column_name: 'title' + suffix, |
|
|
|
column_name: 'title' + suffix, |
|
|
|
dt: 'character varying', |
|
|
|
dt: 'TEXT', |
|
|
|
dtx: 'specificType', |
|
|
|
dtx: 'specificType', |
|
|
|
ct: 'varchar(45)', |
|
|
|
ct: null, |
|
|
|
nrqd: true, |
|
|
|
nrqd: true, |
|
|
|
rqd: false, |
|
|
|
rqd: false, |
|
|
|
ck: false, |
|
|
|
ck: false, |
|
|
@ -259,10 +259,10 @@ export class PgUi { |
|
|
|
un: false, |
|
|
|
un: false, |
|
|
|
ai: false, |
|
|
|
ai: false, |
|
|
|
cdf: null, |
|
|
|
cdf: null, |
|
|
|
clen: 45, |
|
|
|
clen: null, |
|
|
|
np: null, |
|
|
|
np: null, |
|
|
|
ns: null, |
|
|
|
ns: null, |
|
|
|
dtxp: '45', |
|
|
|
dtxp: '', |
|
|
|
dtxs: '', |
|
|
|
dtxs: '', |
|
|
|
altered: 1, |
|
|
|
altered: 1, |
|
|
|
uidt: 'SingleLineText', |
|
|
|
uidt: 'SingleLineText', |
|
|
@ -1632,7 +1632,7 @@ export class PgUi { |
|
|
|
colProp.dt = 'character varying'; |
|
|
|
colProp.dt = 'character varying'; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'SingleLineText': |
|
|
|
case 'SingleLineText': |
|
|
|
colProp.dt = 'character varying'; |
|
|
|
colProp.dt = 'text'; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'LongText': |
|
|
|
case 'LongText': |
|
|
|
colProp.dt = 'text'; |
|
|
|
colProp.dt = 'text'; |
|
|
@ -1683,7 +1683,7 @@ export class PgUi { |
|
|
|
}; |
|
|
|
}; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'URL': |
|
|
|
case 'URL': |
|
|
|
colProp.dt = 'character varying'; |
|
|
|
colProp.dt = 'text'; |
|
|
|
colProp.validate = { |
|
|
|
colProp.validate = { |
|
|
|
func: ['isURL'], |
|
|
|
func: ['isURL'], |
|
|
|
args: [''], |
|
|
|
args: [''], |
|
|
@ -1784,10 +1784,10 @@ export class PgUi { |
|
|
|
case 'LongText': |
|
|
|
case 'LongText': |
|
|
|
case 'Collaborator': |
|
|
|
case 'Collaborator': |
|
|
|
case 'GeoData': |
|
|
|
case 'GeoData': |
|
|
|
return ['char', 'character', 'character varying', 'text']; |
|
|
|
return ['text', 'character varying', 'char', 'character']; |
|
|
|
|
|
|
|
|
|
|
|
case 'Attachment': |
|
|
|
case 'Attachment': |
|
|
|
return ['json', 'char', 'character', 'character varying', 'text']; |
|
|
|
return ['json', 'text', 'char', 'character', 'character varying']; |
|
|
|
|
|
|
|
|
|
|
|
case 'JSON': |
|
|
|
case 'JSON': |
|
|
|
return ['json', 'jsonb', 'text']; |
|
|
|
return ['json', 'jsonb', 'text']; |
|
|
@ -1838,7 +1838,7 @@ export class PgUi { |
|
|
|
return ['character varying']; |
|
|
|
return ['character varying']; |
|
|
|
|
|
|
|
|
|
|
|
case 'URL': |
|
|
|
case 'URL': |
|
|
|
return ['character varying', 'text']; |
|
|
|
return ['text', 'character varying']; |
|
|
|
|
|
|
|
|
|
|
|
case 'Number': |
|
|
|
case 'Number': |
|
|
|
return [ |
|
|
|
return [ |
|
|
|