mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
reset pk name in duplicate table
This commit is contained in:
@@ -606,7 +606,12 @@
|
||||
x.autoIncrement = false;
|
||||
});
|
||||
newTable.foreignKeys = [];
|
||||
newTable.checks = [];
|
||||
newTable.uniques = [];
|
||||
newTable.indexes = [];
|
||||
if (newTable.primaryKey) {
|
||||
newTable.primaryKey.constarintName = null;
|
||||
}
|
||||
dmp.createTable(newTable);
|
||||
dmp.putCmd(
|
||||
'^insert ^into %f(%,i) ^select %,i from %f',
|
||||
|
||||
Reference in New Issue
Block a user