mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup
* automatically set and unset maintenance mode when data is being edited (either sql or files) * added more verbose help prompts. They should now always appear when -h is used. * added --setup as more intuitive command for --firstrun. --firstrun is now considered deprecated and will be removed in due time. * unfuck order of indizes in --siteconfig * fixed some typos * convert echo use to CLI::write * move scattered command line argument checks to CLISetup
This commit is contained in:
@@ -13,8 +13,8 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'achievement';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependancyTC = ['dbc_achievement', 'disables'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $tblDependencyTC = ['dbc_achievement', 'disables'];
|
||||
protected $dbcSourceFiles = ['achievement_category', 'achievement', 'spellicon'];
|
||||
|
||||
private $customData = array(
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'areatrigger';
|
||||
|
||||
protected $tblDependancyTC = ['areatrigger_involvedrelation', 'areatrigger_scripts', 'areatrigger_tavern', 'areatrigger_teleport', 'quest_template', 'quest_template_addon'];
|
||||
protected $tblDependencyTC = ['areatrigger_involvedrelation', 'areatrigger_scripts', 'areatrigger_tavern', 'areatrigger_teleport', 'quest_template', 'quest_template_addon'];
|
||||
protected $dbcSourceFiles = ['areatrigger', 'worldmaparea', 'dungeonmap'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'creature';
|
||||
|
||||
protected $tblDependancyTC = ['creature_template', 'creature_template_locale', 'creature_template_resistance', 'creature_template_spell', 'creature_classlevelstats', 'instance_encounters'];
|
||||
protected $tblDependencyTC = ['creature_template', 'creature_template_locale', 'creature_template_resistance', 'creature_template_spell', 'creature_classlevelstats', 'instance_encounters'];
|
||||
protected $dbcSourceFiles = ['creaturedisplayinfo', 'creaturedisplayinfoextra'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -13,8 +13,8 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'currencies';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependancyTC = ['item_template', 'item_template_locale'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $tblDependencyTC = ['item_template', 'item_template_locale'];
|
||||
protected $dbcSourceFiles = ['itemdisplayinfo', 'currencytypes'];
|
||||
|
||||
// hide test tokens and move them to unused
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'events';
|
||||
|
||||
protected $tblDependancyTC = ['game_event', 'game_event_prerequisite'];
|
||||
protected $tblDependencyTC = ['game_event', 'game_event_prerequisite'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'glyphproperties';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $dbcSourceFiles = ['glyphproperties', 'spellicon'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -132,7 +132,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'item_stats'; // and enchantment stats
|
||||
|
||||
protected $tblDependancyAowow = ['items', 'spell'];
|
||||
protected $tblDependencyAowow = ['items', 'spell'];
|
||||
protected $dbcSourceFiles = ['spellitemenchantment'];
|
||||
|
||||
private function enchantment_stats() : array
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'itemenchantment';
|
||||
|
||||
protected $tblDependancyTC = ['spell_enchant_proc_data'];
|
||||
protected $tblDependencyTC = ['spell_enchant_proc_data'];
|
||||
protected $dbcSourceFiles = ['spellitemenchantment'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -13,8 +13,8 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'items';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependancyTC = ['item_template', 'item_template_locale', 'spell_group', 'game_event'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $tblDependencyTC = ['item_template', 'item_template_locale', 'spell_group', 'game_event'];
|
||||
protected $dbcSourceFiles = ['gemproperties', 'itemdisplayinfo', 'spell', 'glyphproperties', 'durabilityquality', 'durabilitycosts'];
|
||||
|
||||
private $customData = array(
|
||||
|
||||
@@ -19,8 +19,8 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'itemset';
|
||||
|
||||
protected $tblDependancyAowow = ['spell'];
|
||||
protected $tblDependancyTC = ['item_template', 'game_event'];
|
||||
protected $tblDependencyAowow = ['spell'];
|
||||
protected $tblDependencyTC = ['item_template', 'game_event'];
|
||||
protected $dbcSourceFiles = ['itemset'];
|
||||
|
||||
private $customData = array(
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'objects';
|
||||
|
||||
protected $tblDependancyTC = ['gameobject_template', 'gameobject_template_locale', 'gameobject_questitem'];
|
||||
protected $tblDependencyTC = ['gameobject_template', 'gameobject_template_locale', 'gameobject_questitem'];
|
||||
protected $dbcSourceFiles = ['lock'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -11,8 +11,8 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'pet';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependancyTC = ['creature_template', 'creature'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $tblDependencyTC = ['creature_template', 'creature'];
|
||||
protected $dbcSourceFiles = ['talent', 'spell', 'skilllineability', 'creaturefamily'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'quests';
|
||||
|
||||
protected $tblDependancyTC = ['quest_template', 'quest_template_addon', 'quest_template_locale', 'game_event', 'game_event_seasonal_questrelation', 'disables'];
|
||||
protected $tblDependencyTC = ['quest_template', 'quest_template_addon', 'quest_template_locale', 'game_event', 'game_event_seasonal_questrelation', 'disables'];
|
||||
protected $dbcSourceFiles = ['questxp', 'questfactionreward'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'quests_startend';
|
||||
|
||||
protected $tblDependancyTC = ['creature_queststarter', 'creature_questender', 'game_event_creature_quest', 'gameobject_queststarter', 'gameobject_questender', 'game_event_gameobject_quest', 'item_template'];
|
||||
protected $tblDependencyTC = ['creature_queststarter', 'creature_questender', 'game_event_creature_quest', 'gameobject_queststarter', 'gameobject_questender', 'game_event_gameobject_quest', 'item_template'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'skillline';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $dbcSourceFiles = ['skillline', 'spell', 'skilllineability'];
|
||||
|
||||
private $customData = array(
|
||||
|
||||
@@ -11,8 +11,8 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'source';
|
||||
|
||||
protected $tblDependancyAowow = ['spell', 'achievement'];
|
||||
protected $tblDependancyTC = ['playercreateinfo_skills', 'playercreateinfo_item', 'skill_discovery_template', 'achievement_reward', 'skill_perfect_item_template', 'item_template', 'gameobject_template', 'quest_template', 'quest_template_addon', 'creature_template', 'creature', 'trainer_spell', 'npc_vendor', 'game_event_npc_vendor', 'reference_loot_template', 'item_loot_template', 'creature_loot_template', 'gameobject_loot_template', 'mail_loot_template', 'disenchant_loot_template', 'fishing_loot_template', 'skinning_loot_template', 'milling_loot_template', 'prospecting_loot_template', 'pickpocketing_loot_template'];
|
||||
protected $tblDependencyAowow = ['spell', 'achievement'];
|
||||
protected $tblDependencyTC = ['playercreateinfo_skills', 'playercreateinfo_item', 'skill_discovery_template', 'achievement_reward', 'skill_perfect_item_template', 'item_template', 'gameobject_template', 'quest_template', 'quest_template_addon', 'creature_template', 'creature', 'trainer_spell', 'npc_vendor', 'game_event_npc_vendor', 'reference_loot_template', 'item_loot_template', 'creature_loot_template', 'gameobject_loot_template', 'mail_loot_template', 'disenchant_loot_template', 'fishing_loot_template', 'skinning_loot_template', 'milling_loot_template', 'prospecting_loot_template', 'pickpocketing_loot_template'];
|
||||
protected $dbcSourceFiles = ['charstartoutfit', 'talent', 'spell', 'skilllineability', 'itemextendedcost', 'lock'];
|
||||
|
||||
private function queryfy(array $data, string $query) : string
|
||||
|
||||
@@ -13,7 +13,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'spawns'; // and waypoints
|
||||
|
||||
protected $tblDependancyTC = ['creature', 'creature_addon', 'gameobject', 'gameobject_template', 'vehicle_accessory', 'vehicle_accessory_template', 'script_waypoint', 'waypoints', 'waypoint_data'];
|
||||
protected $tblDependencyTC = ['creature', 'creature_addon', 'gameobject', 'gameobject_template', 'vehicle_accessory', 'vehicle_accessory_template', 'script_waypoint', 'waypoints', 'waypoint_data'];
|
||||
protected $dbcSourceFiles = ['worldmaparea', 'map', 'dungeonmap', 'taxipathnode', 'soundemitters', 'areatrigger', 'areatable'];
|
||||
|
||||
private $querys = array(
|
||||
|
||||
@@ -11,8 +11,8 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'spell';
|
||||
|
||||
protected $tblDependancyAowow = ['icons'];
|
||||
protected $tblDependancyTC = ['item_template', 'creature_template', 'creature_template_addon', 'smart_scripts', 'trainer_spell', 'disables', 'spell_ranks', 'spell_dbc', 'skill_discovery_template'];
|
||||
protected $tblDependencyAowow = ['icons'];
|
||||
protected $tblDependencyTC = ['item_template', 'creature_template', 'creature_template_addon', 'smart_scripts', 'trainer_spell', 'disables', 'spell_ranks', 'spell_dbc', 'skill_discovery_template'];
|
||||
protected $dbcSourceFiles = ['spell', 'spellradius', 'spellduration', 'spellrunecost', 'spellcasttimes', 'skillline', 'skilllineability', 'skillraceclassinfo', 'talent', 'talenttab', 'glyphproperties', 'spellicon'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'spelldifficulty';
|
||||
|
||||
protected $tblDependancyTC = ['spelldifficulty_dbc'];
|
||||
protected $tblDependencyTC = ['spelldifficulty_dbc'];
|
||||
protected $dbcSourceFiles = ['spelldifficulty'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -11,7 +11,7 @@ SqlGen::register(new class extends SetupScript
|
||||
{
|
||||
protected $command = 'taxi'; // path & nodes
|
||||
|
||||
protected $tblDependancyTC = ['creature', 'creature_template'];
|
||||
protected $tblDependencyTC = ['creature', 'creature_template'];
|
||||
protected $dbcSourceFiles = ['taxipath', 'taxinodes', 'worldmaparea', 'worldmaptransforms', 'factiontemplate'];
|
||||
|
||||
public function generate(array $ids = []) : bool
|
||||
|
||||
@@ -13,7 +13,7 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'titles';
|
||||
|
||||
protected $tblDependancyTC = ['quest_template', 'game_event_seasonal_questrelation', 'game_event', 'achievement_reward'];
|
||||
protected $tblDependencyTC = ['quest_template', 'game_event_seasonal_questrelation', 'game_event', 'achievement_reward'];
|
||||
protected $dbcSourceFiles = ['chartitles'];
|
||||
|
||||
private $customData = array(
|
||||
|
||||
@@ -13,7 +13,7 @@ SqlGen::register(new class extends SetupScript
|
||||
|
||||
protected $command = 'zones';
|
||||
|
||||
protected $tblDependancyTC = ['access_requirement'];
|
||||
protected $tblDependencyTC = ['access_requirement'];
|
||||
protected $dbcSourceFiles = ['worldmaptransforms', 'worldmaparea', 'map', 'mapdifficulty', 'areatable', 'lfgdungeons', 'battlemasterlist'];
|
||||
|
||||
private $customData = array(
|
||||
|
||||
Reference in New Issue
Block a user