Commit 093e0a58 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

migration: Ensure History table & triggers are removed

parent 23bd81cb
......@@ -65,3 +65,6 @@
"DROP TABLE " + ArtistTable::Name,
"DELETE FROM " + ArtistTable::Name + "Fts",
"DELETE FROM MediaArtistRelation",
// History table & its triggers were removed for good:
"DROP TABLE History",
......@@ -172,7 +172,7 @@ TEST_F( DbModel, Upgrade12to13 )
// We can't check for the number of albums anymore since they are deleted
// as part of 13 -> 14 migration
CheckNbTriggers( 33 );
CheckNbTriggers( 32 );
}
TEST_F( DbModel, Upgrade13to14 )
......@@ -190,5 +190,5 @@ TEST_F( DbModel, Upgrade13to14 )
ASSERT_EQ( m->thumbnail(), "" );
ASSERT_FALSE( m->isThumbnailGenerated() );
CheckNbTriggers( 33 );
CheckNbTriggers( 32 );
}
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