|
|
@ -536,11 +536,13 @@ async function importTemplate() { |
|
|
|
columns: table.columns || [], |
|
|
|
columns: table.columns || [], |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// column_name could have been updated in tableCreate |
|
|
|
if (process.env.NC_SANITIZE_COLUMN_NAME !== 'false') { |
|
|
|
// e.g. sanitize column name to something like field_1, field_2, and etc |
|
|
|
// column_name could have been updated in tableCreate |
|
|
|
createdTable.columns.forEach((column, i) => { |
|
|
|
// e.g. sanitize column name to something like field_1, field_2, and etc |
|
|
|
table.columns[i].column_name = column.column_name |
|
|
|
createdTable.columns.forEach((column, i) => { |
|
|
|
}) |
|
|
|
table.columns[i].column_name = column.column_name |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
table.id = createdTable.id |
|
|
|
table.id = createdTable.id |
|
|
|
table.title = createdTable.title |
|
|
|
table.title = createdTable.title |
|
|
|