This commit is contained in:
Adria Navarro 2024-09-03 16:15:33 +02:00
parent 2667238d93
commit 52283e07aa
1 changed files with 3 additions and 3 deletions

View File

@ -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({