fix linter issues

This commit is contained in:
Hayden 2022-09-27 16:10:49 -08:00
parent 94949af892
commit 4e21cd03be
2 changed files with 1 additions and 2 deletions

View file

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

View file

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