Commit 4553c0f4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaGroup: Fix checkDbModel

Actually check the triggers intead of the same copy pasted one
parent ce423a6a
......@@ -726,11 +726,11 @@ bool MediaGroup::checkDbModel( MediaLibraryPtr ml )
check( ml->getConn(), Triggers::DeleteFts ) &&
check( ml->getConn(), Triggers::IncrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnGroupChange ) &&
check( ml->getConn(), Triggers::DecrementNbMediaOnDeletion ) &&
check( ml->getConn(), Triggers::DeleteEmptyGroups ) &&
check( ml->getConn(), Triggers::RenameForcedSingleton ) &&
check( ml->getConn(), Triggers::UpdateDurationOnMediaChange ) &&
check( ml->getConn(), Triggers::UpdateDurationOnMediaDeletion ) &&
checkIndex( ml->getConn(), Indexes::ForcedSingleton ) &&
checkIndex( ml->getConn(), Indexes::Duration ) &&
checkIndex( ml->getConn(), Indexes::CreationDate ) &&
......
......@@ -58,7 +58,7 @@ public:
};
enum class Indexes : uint8_t
{
ParentId,
ParentId, // Deprecated in model 25
ForcedSingleton,
Duration,
CreationDate,
......
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