Allow multi-statement migration scripts
All checks were successful
Build / build (push) Successful in 1m7s
All checks were successful
Build / build (push) Successful in 1m7s
This commit is contained in:
parent
82c7f57078
commit
0a177e0b46
@ -17,4 +17,8 @@ func TestDb_MigrateDb(t *testing.T) {
|
|||||||
var count int
|
var count int
|
||||||
db.Query("select count(*) from mydata").MustScanSingle(&count)
|
db.Query("select count(*) from mydata").MustScanSingle(&count)
|
||||||
require.Equal(t, 1, count, "incorrect number of rows in database")
|
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")
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user