From a937fb7ac61850ff137987ff859b22266fdfb3a9 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 22 Mar 2017 15:15:48 +0100 Subject: [PATCH] Setup/Sounds * updated sql update for changed generator Setup/Updates * do not throw an invalid scripts supplied - error if no actual scripts where suppied (in case of update it is skipped, in every other case it generates everything anyway) --- setup/tools/clisetup/build.func.php | 2 +- setup/tools/clisetup/sql.func.php | 2 +- setup/updates/1488745158_02.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/tools/clisetup/build.func.php b/setup/tools/clisetup/build.func.php index dbafb511..3b715b41 100644 --- a/setup/tools/clisetup/build.func.php +++ b/setup/tools/clisetup/build.func.php @@ -81,7 +81,7 @@ function build($syncMe = null) else CLISetup::log('finished file generation with errors', CLISetup::LOG_ERROR); } - else + else if ($syncMe) CLISetup::log('no valid script names supplied', CLISetup::LOG_ERROR); return $done; diff --git a/setup/tools/clisetup/sql.func.php b/setup/tools/clisetup/sql.func.php index 0a1efb6e..5ac98fc0 100644 --- a/setup/tools/clisetup/sql.func.php +++ b/setup/tools/clisetup/sql.func.php @@ -47,7 +47,7 @@ function sql($syncMe = null) else CLISetup::log('finished sql generation with errors', CLISetup::LOG_ERROR); } - else + else if ($syncMe) CLISetup::log('no valid script names supplied', CLISetup::LOG_ERROR); return $done; diff --git a/setup/updates/1488745158_02.sql b/setup/updates/1488745158_02.sql index 9fbb753f..bd0f6c06 100644 --- a/setup/updates/1488745158_02.sql +++ b/setup/updates/1488745158_02.sql @@ -161,4 +161,4 @@ CREATE TABLE IF NOT EXISTS `aowow_spell_sounds` ( /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -UPDATE aowow_dbversion SET `build` = CONCAT(IFNULL(`build`, ''), ' sounds'), `sql` = CONCAT(IFNULL(`sql`, ''), ' spell creature sounds spawns'); +UPDATE aowow_dbversion SET `build` = CONCAT(IFNULL(`build`, ''), ' soundfiles'), `sql` = CONCAT(IFNULL(`sql`, ''), ' spell creature sounds spawns');