Fix: update db need migrate alist and enby vendor

pull/53/head v0.3.4
zijiren233 1 year ago
parent 8bbba18e24
commit 63717f52ee

@ -42,7 +42,11 @@ var dbVersions = map[string]dbVersion{
_ = db.Exec("DELETE FROM movies WHERE base_vendor_info_vendor IN ('alist', 'emby')").Error
_ = db.Migrator().DropTable("alist_vendors", "emby_vendors")
// delete all vendors, because we are going to change the more vendor table, e.g. bilibili_vendors
return db.Migrator().DropTable("streaming_vendor_infos")
_ = db.Migrator().DropTable("streaming_vendor_infos")
return autoMigrate(
new(model.AlistVendor),
new(model.EmbyVendor),
)
},
},
"0.0.3": {

Loading…
Cancel
Save