mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 05:15:59 +00:00
force recreate table when changing autoincrement flag
This commit is contained in:
@@ -166,4 +166,14 @@ describe('Alter table', () => {
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
test.each(engines.map(engine => [engine.label, engine]))(
|
||||
'Change autoincrement - %s',
|
||||
testWrapper(async (conn, driver, engine) => {
|
||||
await testTableDiff(engine, conn, driver, tbl => {
|
||||
tbl.columns.find(x => x.columnName == 'col_pk').autoIncrement = true;
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user