diff --git a/migrator_test.go b/migrator_test.go index e8ce92d..48388fc 100644 --- a/migrator_test.go +++ b/migrator_test.go @@ -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") } diff --git a/testMigrations/3_multicomment.sql b/testMigrations/3_multicomment.sql index e3ad9c2..af64c70 100644 --- a/testMigrations/3_multicomment.sql +++ b/testMigrations/3_multicomment.sql @@ -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');