fix: respect implicitNullDeclaration in alter database queries

This commit is contained in:
Pavel
2025-06-03 18:15:07 +02:00
parent 38d87a7c8f
commit 58f1f749fc

View File

@@ -29,7 +29,7 @@ async function testDatabaseDiff(conn, driver, mangle, createObject = null) {
driver,
`create table ~t2 (
~id int not null primary key,
~t1_id int null references ~t1(~id)
~t1_id int ${driver.dialect.implicitNullDeclaration ? '' : 'null'} references ~t1(~id)
)`
);