Allow multi-statement migration scripts
All checks were successful
Build / build (push) Successful in 1m7s

This commit is contained in:
Sebastiaan de Schaetzen 2025-03-12 08:23:16 +01:00
parent 82c7f57078
commit 0a177e0b46
2 changed files with 6 additions and 2 deletions

View File

@ -17,4 +17,8 @@ func TestDb_MigrateDb(t *testing.T) {
var count int
db.Query("select count(*) from mydata").MustScanSingle(&count)
require.Equal(t, 1, count, "incorrect number of rows in database")
count = 0
db.Query("select count(*) from multiTable").MustScanSingle(&count)
require.Equal(t, 1, count, "incorrect number of rows in database")
}

View File

@ -1,3 +1,3 @@
create table testTable(value text);
create table multiTable(value text);
insert into testTable(value) values ('testValue');
insert into multiTable(value) values ('testValue');