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:
Dale Hui 2019-06-20 23:48:13 -07:00
parent 481bf0fb03
commit cde3cfc30d
1 changed files with 0 additions and 9 deletions

View File

@ -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",