From f94901c3b273b0f0db9404ec8ad3e37350ef14d2 Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 23 May 2025 00:28:27 +0200 Subject: [PATCH] feat: handle implicit null declation in alter-table --- integration-tests/__tests__/alter-table.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-tests/__tests__/alter-table.spec.js b/integration-tests/__tests__/alter-table.spec.js index bcbe583ef..c6883543b 100644 --- a/integration-tests/__tests__/alter-table.spec.js +++ b/integration-tests/__tests__/alter-table.spec.js @@ -60,7 +60,9 @@ async function testTableDiff(engine, conn, driver, mangle) { if (!engine.skipReferences) { const query = formatQueryWithoutParams( driver, - `create table ~t2 (~id int not null primary key, ~fkval int null references ~t1(~col_ref))` + `create table ~t2 (~id int not null primary key, ~fkval int ${ + driver.dialect.implicitNullDeclaration ? '' : 'null' + } references ~t1(~col_ref))` ); await driver.query(conn, transformSqlForEngine(engine, query));