mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fix
This commit is contained in:
parent
5b503ae802
commit
5c6989bf91
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user