aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/store/sqldb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/store/sqldb.go b/server/store/sqldb.go
index d7b5e00..de242eb 100644
--- a/server/store/sqldb.go
+++ b/server/store/sqldb.go
@@ -4,7 +4,6 @@ import (
"fmt"
"log"
"net"
- "path"
"time"
"github.com/go-sql-driver/mysql"
@@ -92,7 +91,8 @@ func autoMigrate(driver string, conn *sqlx.DB) error {
var err error
migrate.SetTable("schema_migrations")
srcs := &migrate.PackrMigrationSource{
- Box: packr.NewBox(path.Join("migrations", driver)),
+ Box: packr.NewBox("migrations"),
+ Dir: driver,
}
n, err := migrate.Exec(conn.DB, driver, srcs, migrate.Up)
if err != nil {