This commit is contained in:
Jan Prochazka 2022-06-02 16:57:23 +02:00
parent 5b503ae802
commit 5c6989bf91

View File

@ -604,13 +604,14 @@
newTable.pureName = `_${newTable.pureName}_${dateFormat(new Date(), 'yyyy-MM-dd-hh-mm-ss')}`;
newTable.columns.forEach(x => {
x.autoIncrement = false;
x.defaultConstraint = null;
});
newTable.foreignKeys = [];
newTable.checks = [];
newTable.uniques = [];
newTable.indexes = [];
if (newTable.primaryKey) {
newTable.primaryKey.constarintName = null;
newTable.primaryKey.constraintName = null;
}
dmp.createTable(newTable);
dmp.putCmd(