Browse Source

fix: setting new column to singleline text

Signed-off-by: Naveen MR <oof1lab@gmail.com>
pull/1884/head
Naveen MR 3 years ago
parent
commit
5703be3666
  1. 11
      packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts
  2. 15
      packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts
  3. 11
      packages/nocodb-sdk/src/lib/sqlUi/OracleUi.ts
  4. 11
      packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
  5. 9
      packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

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

@ -139,9 +139,9 @@ export class MssqlUi {
static getNewColumn(suffix) {
return {
column_name: 'title' + suffix,
dt: 'int',
dt: 'varchar',
dtx: 'specificType',
ct: 'integer(11)',
ct: 'varchar(45)',
nrqd: true,
rqd: false,
ck: false,
@ -152,11 +152,10 @@ export class MssqlUi {
clen: 45,
np: null,
ns: null,
// data_type_x_specific: ' ',
dtxp: '',
dtxs: ' ',
dtxp: '45',
dtxs: '',
altered: 1,
uidt: 'Number',
uidt: 'SingleLineText',
uip: '',
uicn: ''
};

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

@ -143,9 +143,9 @@ export class MysqlUi {
static getNewColumn(suffix) {
return {
column_name: 'title' + suffix,
dt: 'int',
dt: 'varchar',
dtx: 'specificType',
ct: 'integer(11)',
ct: 'varchar(45)',
nrqd: true,
rqd: false,
ck: false,
@ -156,11 +156,10 @@ export class MysqlUi {
clen: 45,
np: null,
ns: null,
// data_type_x_specific: ' ',
dtxp: '11',
dtxs: ' ',
dtxp: '45',
dtxs: '',
altered: 1,
uidt: 'Number',
uidt: 'SingleLineText',
uip: '',
uicn: ''
};
@ -678,14 +677,14 @@ export class MysqlUi {
// set headers before settings result
for (let i = 0; i < keys.length; i++) {
const text = keys[i];
headers.push({ text, value: text, sortable: false });
headers.push({text, value: text, sortable: false});
}
} else {
const keys = Object.keys(result);
for (let i = 0; i < keys.length; i++) {
const text = keys[i];
if (typeof text !== 'function') {
headers.push({ text, value: text, sortable: false });
headers.push({text, value: text, sortable: false});
}
}
result = [result];

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

@ -89,9 +89,9 @@ export class OracleUi {
static getNewColumn(suffix) {
return {
column_name: 'title' + suffix,
dt: 'integer',
dt: 'varchar',
dtx: 'specificType',
ct: 'integer(11)',
ct: 'varchar(45)',
nrqd: true,
rqd: false,
ck: false,
@ -102,11 +102,10 @@ export class OracleUi {
clen: 45,
np: null,
ns: null,
// data_type_x_specific: ' ',
dtxp: '11',
dtxs: ' ',
dtxp: '45',
dtxs: '',
altered: 1,
uidt: 'Number',
uidt: 'SingleLineText',
uip: '',
uicn: ''
};

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

@ -203,9 +203,9 @@ export class PgUi {
static getNewColumn(suffix) {
return {
column_name: 'title' + suffix,
dt: 'int4',
dt: 'character varying',
dtx: 'specificType',
ct: 'integer(11)',
ct: 'varchar(45)',
nrqd: true,
rqd: false,
ck: false,
@ -216,11 +216,10 @@ export class PgUi {
clen: 45,
np: null,
ns: null,
// data_type_x_specific: ' ',
dtxp: '11',
dtxs: ' ',
dtxp: '45',
dtxs: '',
altered: 1,
uidt: 'Number',
uidt: 'SingleLineText',
uip: '',
uicn: ''
};

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

@ -126,9 +126,9 @@ export class SqliteUi {
static getNewColumn(suffix) {
return {
column_name: 'title' + suffix,
dt: 'integer',
dt: 'varchar',
dtx: 'specificType',
ct: 'integer(11)',
ct: 'varchar',
nrqd: true,
rqd: false,
ck: false,
@ -139,11 +139,10 @@ export class SqliteUi {
clen: 45,
np: null,
ns: null,
// data_type_x_specific: ' ',
dtxp: '',
dtxs: ' ',
dtxs: '',
altered: 1,
uidt: 'Number',
uidt: 'SingleLineText',
uip: '',
uicn: ''
};

Loading…
Cancel
Save