bug fix #20

Merged
jusax23 merged 2 commits from dev into main 2023-03-24 18:53:04 +01:00
Showing only changes of commit 56fb927c74 - Show all commits

View file

@ -223,6 +223,15 @@ export class Handler {
}
}
}
if (changePrimary) for (let j = 0; j < keys.length; j++) {
const a = table.dbLangTableAttributes[keys[j]];
if (a.ops.autoIncrement) {
a.ops.autoIncrement = false;
create.appendEnding(handler.querys.changeColumn(handler, a));
a.ops.autoIncrement = true;
connst.appendEnding(handler.querys.changeColumn(handler, a));
}
}
}
if (changePrimary) {
create.appendEnding(handler.querys.removePrimaryKey(handler, table.dbLangTableName));