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

@@ -123,6 +123,8 @@ SqlGen::register(new class extends SetupScript
if ($criteria = DB::World()->selectCol('SELECT entry FROM disables WHERE sourceType = 4'))
DB::Aowow()->query('UPDATE aowow_achievement a JOIN aowow_achievementcriteria ac ON a.id = ac.refAchievementId SET a.cuFlags = ?d WHERE ac.id IN (?a)', CUSTOM_DISABLED, $criteria);
$this->reapplyCCFlags('achievement', TYPE_ACHIEVEMENT);
return true;
}
});