From 4e21cd03be891db80a3925a7c5d7992b06b3cb49 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Tue, 27 Sep 2022 16:10:49 -0800 Subject: [PATCH] fix linter issues --- backend/app/api/main.go | 2 +- backend/app/migrations/main.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/app/api/main.go b/backend/app/api/main.go index da9be3d..534e684 100644 --- a/backend/app/api/main.go +++ b/backend/app/api/main.go @@ -97,6 +97,7 @@ func run(cfg *config.Config) error { // Write the embed migrations to the temp directory. fsDir, err := migrations.Files.ReadDir(".") if err != nil { + return err } for _, f := range fsDir { @@ -121,7 +122,6 @@ func run(cfg *config.Config) error { } options := []schema.MigrateOption{ - schema.WithAtlas(true), schema.WithDir(dir), schema.WithDropColumn(true), schema.WithDropIndex(true), diff --git a/backend/app/migrations/main.go b/backend/app/migrations/main.go index 61b0358..bcbb0dd 100644 --- a/backend/app/migrations/main.go +++ b/backend/app/migrations/main.go @@ -23,7 +23,6 @@ func main() { } // Migrate diff options. opts := []schema.MigrateOption{ - schema.WithAtlas(true), schema.WithDir(dir), // provide migration directory schema.WithMigrationMode(schema.ModeReplay), // provide migration mode schema.WithDialect(dialect.SQLite), // Ent dialect to use