diff --git a/internal/ticket/psql/psql_servicer_test.go b/internal/ticket/psql/psql_servicer_test.go index c8c4626..0ddc633 100644 --- a/internal/ticket/psql/psql_servicer_test.go +++ b/internal/ticket/psql/psql_servicer_test.go @@ -4,18 +4,20 @@ import ( "context" "database/sql" "fmt" - "github.com/welthee/dinonce/v2/internal/ticket" - "github.com/welthee/dinonce/v2/internal/ticket/psql" "os" "sync" "testing" + "github.com/welthee/dinonce/v2/internal/ticket" + "github.com/welthee/dinonce/v2/internal/ticket/psql" + "github.com/golang-migrate/migrate/v4" "github.com/golang-migrate/migrate/v4/database/postgres" _ "github.com/golang-migrate/migrate/v4/source/file" "github.com/google/uuid" "github.com/rs/zerolog" "github.com/rs/zerolog/log" + api "github.com/welthee/dinonce/v2/internal/api/generated" ) @@ -50,7 +52,7 @@ func init() { log.Fatal().Err(err).Msg("can not get db instance") } - m, err := migrate.NewWithDatabaseInstance("file://../../scripts/psql/migrations", "postgres", driver) + m, err := migrate.NewWithDatabaseInstance("file://../../../scripts/psql/migrations", "postgres", driver) if err != nil { log.Fatal().Err(err).Msg("can not migrate database schema") }