mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 00:30:27 +00:00
fix linter issues
This commit is contained in:
parent
94949af892
commit
4e21cd03be
2 changed files with 1 additions and 2 deletions
|
@ -97,6 +97,7 @@ func run(cfg *config.Config) error {
|
||||||
// Write the embed migrations to the temp directory.
|
// Write the embed migrations to the temp directory.
|
||||||
fsDir, err := migrations.Files.ReadDir(".")
|
fsDir, err := migrations.Files.ReadDir(".")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, f := range fsDir {
|
for _, f := range fsDir {
|
||||||
|
@ -121,7 +122,6 @@ func run(cfg *config.Config) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
options := []schema.MigrateOption{
|
options := []schema.MigrateOption{
|
||||||
schema.WithAtlas(true),
|
|
||||||
schema.WithDir(dir),
|
schema.WithDir(dir),
|
||||||
schema.WithDropColumn(true),
|
schema.WithDropColumn(true),
|
||||||
schema.WithDropIndex(true),
|
schema.WithDropIndex(true),
|
||||||
|
|
|
@ -23,7 +23,6 @@ func main() {
|
||||||
}
|
}
|
||||||
// Migrate diff options.
|
// Migrate diff options.
|
||||||
opts := []schema.MigrateOption{
|
opts := []schema.MigrateOption{
|
||||||
schema.WithAtlas(true),
|
|
||||||
schema.WithDir(dir), // provide migration directory
|
schema.WithDir(dir), // provide migration directory
|
||||||
schema.WithMigrationMode(schema.ModeReplay), // provide migration mode
|
schema.WithMigrationMode(schema.ModeReplay), // provide migration mode
|
||||||
schema.WithDialect(dialect.SQLite), // Ent dialect to use
|
schema.WithDialect(dialect.SQLite), // Ent dialect to use
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue