Tidying
This commit is contained in:
parent
2667238d93
commit
52283e07aa
|
@ -1238,10 +1238,10 @@ describe.each([
|
||||||
|
|
||||||
const renameColumn = async (table: Table, renaming: RenameColumn) => {
|
const renameColumn = async (table: Table, renaming: RenameColumn) => {
|
||||||
const newSchema = { ...table.schema }
|
const newSchema = { ...table.schema }
|
||||||
;(newSchema[renaming.updated] = {
|
newSchema[renaming.updated] = {
|
||||||
...table.schema[renaming.old],
|
...table.schema[renaming.old],
|
||||||
name: renaming.updated,
|
name: renaming.updated,
|
||||||
}),
|
}
|
||||||
delete newSchema[renaming.old]
|
delete newSchema[renaming.old]
|
||||||
|
|
||||||
await config.api.table.save({
|
await config.api.table.save({
|
||||||
|
|
Loading…
Reference in New Issue