mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 00:13:57 +00:00
feat: add add comment to column test
This commit is contained in:
@@ -118,6 +118,22 @@ describe('Alter table', () => {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
test.each(engines.filter(i => i.supportColumnComments).map(engine => [engine.label, engine]))(
|
||||||
|
'Add comment to column - %s',
|
||||||
|
testWrapper(async (conn, driver, engine) => {
|
||||||
|
await testTableDiff(engine, conn, driver, tbl => {
|
||||||
|
tbl.columns.push({
|
||||||
|
columnName: 'added',
|
||||||
|
columnComment: 'Added column comment',
|
||||||
|
dataType: 'int',
|
||||||
|
pairingId: crypto.randomUUID(),
|
||||||
|
notNull: false,
|
||||||
|
autoIncrement: false,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
test.each(
|
test.each(
|
||||||
createEnginesColumnsSource(engines.filter(x => !x.skipDropColumn)).filter(
|
createEnginesColumnsSource(engines.filter(x => !x.skipDropColumn)).filter(
|
||||||
([_label, col, engine]) => !engine.skipPkDrop || !col.endsWith('_pk')
|
([_label, col, engine]) => !engine.skipPkDrop || !col.endsWith('_pk')
|
||||||
|
|||||||
Reference in New Issue
Block a user