Opt: db update

pull/52/head
zijiren233 2 years ago
parent d3431d9004
commit d58002f13d

@ -44,6 +44,7 @@ var dbVersions = map[string]dbVersion{
"0.0.3": {
NextVersion: "",
Upgrade: func(db *gorm.DB) error {
_ = db.Exec("DELETE FROM movies WHERE base_vendor_info_vendor IN ('alist', 'emby')").Error
return db.Migrator().DropTable("alist_vendors", "emby_vendors")
},
},

Loading…
Cancel
Save