Skip to content

Commit cde3cfc

Browse files
committed
Fix broken sqlite tests
Since v4.3.0, Migrate.Drop() no longer recreates the migrate schema version table. See: https://github.com/golang-migrate/migrate/releases/tag/v4.3.0
1 parent 481bf0f commit cde3cfc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

database/sqlite3/sqlite3_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ func TestMigrate(t *testing.T) {
4545
}
4646
}()
4747
t.Logf("DB path : %s\n", filepath.Join(dir, "sqlite3.db"))
48-
p := &Sqlite{}
49-
addr := fmt.Sprintf("sqlite3://%s", filepath.Join(dir, "sqlite3.db"))
50-
d, err := p.Open(addr)
51-
if err != nil {
52-
t.Fatal(err)
53-
}
5448

5549
db, err := sql.Open("sqlite3", filepath.Join(dir, "sqlite3.db"))
5650
if err != nil {
@@ -65,9 +59,6 @@ func TestMigrate(t *testing.T) {
6559
if err != nil {
6660
t.Fatal(err)
6761
}
68-
if err := d.Drop(); err != nil {
69-
t.Fatal(err)
70-
}
7162

7263
m, err := migrate.NewWithDatabaseInstance(
7364
"file://./examples/migrations",

0 commit comments

Comments
 (0)