mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 20:49:02 +00:00
Replace database, mostly album related
This commit is contained in:
@@ -71,7 +71,13 @@ func SetupDatabase() (*gorm.DB, error) {
|
||||
|
||||
func MigrateDatabase(db *gorm.DB) error {
|
||||
|
||||
db.AutoMigrate(&models.User{}, &models.AccessToken{})
|
||||
db.AutoMigrate(
|
||||
&models.User{},
|
||||
&models.AccessToken{},
|
||||
&models.SiteInfo{},
|
||||
&models.Album{},
|
||||
&models.MediaEXIF{},
|
||||
)
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user