Skip to content
Snippets Groups Projects
Verified Commit e05c0f26 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: remove initialMigration function

parent c45a3ace
No related branches found
No related tags found
No related merge requests found
......@@ -75,10 +75,6 @@ var (
}
)
func initialMigration(tx *gorm.DB) (err error) {
return tx.AutoMigrate(&Show{}, &File{}, &ImportLog{})
}
func (st *Store) initDBModel(cfg DBConfig) (err error) {
opts := gormigrate.DefaultOptions
opts.TableName = migrationsTn
......@@ -86,7 +82,6 @@ func (st *Store) initDBModel(cfg DBConfig) (err error) {
opts.UseTransaction = true
m := gormigrate.New(st.db, opts, dbMigrations)
m.InitSchema(initialMigration)
if err = m.Migrate(); err != nil {
return errors.New("running database migrations failed: " + err.Error())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment