Setup/Update

* reapply flags for community content when rebuilding DB
   fixes associated filters and meta page 'missing screenshots'
This commit is contained in:
Sarjuuk
2022-03-03 18:55:04 +01:00
parent 33ec14f232
commit 73c1118601
22 changed files with 57 additions and 0 deletions

View File

@@ -182,6 +182,8 @@ SqlGen::register(new class extends SetupScript
// apply cuFlag: exCludeFromListview [for nameparts indicating internal usage]
DB::Aowow()->query('UPDATE ?_creature SET cuFlags = cuFlags | ?d WHERE name_loc0 LIKE "%[%" OR name_loc0 LIKE "%(%" OR name_loc0 LIKE "%visual%" OR name_loc0 LIKE "%trigger%" OR name_loc0 LIKE "%credit%" OR name_loc0 LIKE "%marker%"', CUSTOM_EXCLUDE_FOR_LISTVIEW);
$this->reapplyCCFlags('creature', TYPE_NPC);
return true;
}
});