refactor: add upload and pin models to migration

This commit is contained in:
Derrick Hammer 2023-05-04 04:14:31 -04:00
parent ea99108327
commit 13d1adb717
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func Init() {
}
// Automatically migrate the database schema based on the model definitions.
err = db.Migrator().AutoMigrate(&model.Account{}, &model.Key{}, &model.KeyChallenge{}, &model.LoginSession{})
err = db.Migrator().AutoMigrate(&model.Account{}, &model.Key{}, &model.KeyChallenge{}, &model.LoginSession{}, &model.Upload{}, &model.Pin{})
if err != nil {
panic(fmt.Errorf("Database setup failed database type: %s \n", err))
}