mirror of https://github.com/status-im/migrate.git
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
This commit is contained in:
parent
481bf0fb03
commit
cde3cfc30d
|
@ -45,12 +45,6 @@ func TestMigrate(t *testing.T) {
|
|||
}
|
||||
}()
|
||||
t.Logf("DB path : %s\n", filepath.Join(dir, "sqlite3.db"))
|
||||
p := &Sqlite{}
|
||||
addr := fmt.Sprintf("sqlite3://%s", filepath.Join(dir, "sqlite3.db"))
|
||||
d, err := p.Open(addr)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
db, err := sql.Open("sqlite3", filepath.Join(dir, "sqlite3.db"))
|
||||
if err != nil {
|
||||
|
@ -65,9 +59,6 @@ func TestMigrate(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := d.Drop(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
m, err := migrate.NewWithDatabaseInstance(
|
||||
"file://./examples/migrations",
|
||||
|
|
Loading…
Reference in New Issue