Commit 6a081277 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

migration: Recreate Show & Movie tables

parent 30f459fb
......@@ -1156,11 +1156,14 @@ void MediaLibrary::migrateModel13to14()
// We will run a re-scan, so we don't care about keeping their content
Album::createTable( getConn() );
Artist::createTable( getConn() );
Movie::createTable( getConn() );
Show::createTable( getConn() );
// Re-create triggers removed in the process
Media::createTriggers( getConn() );
AlbumTrack::createTriggers( getConn() );
Album::createTriggers( getConn() );
Artist::createTriggers( getConn(), 14 );
Show::createTriggers( getConn() );
t->commit();
}
......
......@@ -88,6 +88,9 @@
"DROP TABLE " + ArtistTable::Name,
"DELETE FROM " + ArtistTable::Name + "Fts",
"DELETE FROM MediaArtistRelation",
"DROP TABLE " + MovieTable::Name,
"DROP TABLE " + ShowTable::Name,
// No need to delete the ShowFts table since... it didn't exist
// History table & its triggers were removed for good:
"DROP TABLE History",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment