From 339eab33c89512e6c8c63319ebf4504a38720699 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 31 Jul 2025 18:30:20 +0200 Subject: [PATCH] feat: add add comment to column test --- integration-tests/__tests__/alter-table.spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/integration-tests/__tests__/alter-table.spec.js b/integration-tests/__tests__/alter-table.spec.js index c6883543b..d0cfbfd61 100644 --- a/integration-tests/__tests__/alter-table.spec.js +++ b/integration-tests/__tests__/alter-table.spec.js @@ -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( createEnginesColumnsSource(engines.filter(x => !x.skipDropColumn)).filter( ([_label, col, engine]) => !engine.skipPkDrop || !col.endsWith('_pk')