Add regression test for alter table with notnull constraint

This commit is contained in:
PThorpe92
2025-09-27 13:15:48 -04:00
parent b7fc9fef40
commit bd17c5d5df

View File

@@ -204,3 +204,10 @@ do_execsql_test_on_specific_db {:memory:} alter-table-rename-to-quoted-identifie
"CREATE INDEX idx ON \"t t\" (\"b b\")"
"2"
}
# https://github.com/tursodatabase/turso/issues/3391
do_execsql_test_on_specific_db {:memory:} alter-table-add-notnull-col {
CREATE TABLE t (a);
ALTER TABLE t ADD b NOT NULL;
.schema t
} {{CREATE TABLE t (a, b NOT NULL);}}