Merge AUTO_DB_UPGRADE into SPEED_HAX

This commit is contained in:
Shish 2020-01-27 19:52:54 +00:00
parent 3c5e6f0746
commit 22c7cab0cd
4 changed files with 2 additions and 6 deletions

View file

@ -36,7 +36,6 @@ _d("MIN_PHP_VERSION", '7.3');// string minimum supported PHP version
_d("TRACE_FILE", null); // string file to log performance data into
_d("TRACE_THRESHOLD", 0.0); // float log pages which take more time than this many seconds
_d("ENABLED_MODS", "imageboard");
_d("AUTO_DB_UPGRADE", true); // bool whether or not to automatically run DB schema updates
/*
* Calculated settings - you should never need to change these

View file

@ -119,7 +119,7 @@ $_tracer->end();
//$_tracer->mark(@$_SERVER["REQUEST_URI"]);
$_tracer->begin($_SERVER["REQUEST_URI"] ?? "No Request");
if (AUTO_DB_UPGRADE) {
if (!SPEED_HAX) {
send_event(new DatabaseUpgradeEvent());
}
send_event(new InitExtEvent());

View file

@ -24,9 +24,7 @@ _load_theme_files();
$page = new Page();
_load_event_listeners();
if (AUTO_DB_UPGRADE) {
send_event(new DatabaseUpgradeEvent());
}
send_event(new DatabaseUpgradeEvent());
send_event(new InitExtEvent());
abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase

View file

@ -19,7 +19,6 @@ define("TRACE_FILE", null);
define("TRACE_THRESHOLD", 0.0);
define("ENABLED_MODS", "imageboard");
define("SCORE_VERSION", 'develop/'.VERSION);
define("AUTO_DB_UPGRADE", true);
define("TIMEZONE", 'UTC');
define("BASE_HREF", "/");
define("CLI_LOG_LEVEL", 50);