Merge AUTO_DB_UPGRADE into SPEED_HAX
This commit is contained in:
parent
3c5e6f0746
commit
22c7cab0cd
4 changed files with 2 additions and 6 deletions
|
@ -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_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("TRACE_THRESHOLD", 0.0); // float log pages which take more time than this many seconds
|
||||||
_d("ENABLED_MODS", "imageboard");
|
_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
|
* Calculated settings - you should never need to change these
|
||||||
|
|
|
@ -119,7 +119,7 @@ $_tracer->end();
|
||||||
//$_tracer->mark(@$_SERVER["REQUEST_URI"]);
|
//$_tracer->mark(@$_SERVER["REQUEST_URI"]);
|
||||||
$_tracer->begin($_SERVER["REQUEST_URI"] ?? "No Request");
|
$_tracer->begin($_SERVER["REQUEST_URI"] ?? "No Request");
|
||||||
|
|
||||||
if (AUTO_DB_UPGRADE) {
|
if (!SPEED_HAX) {
|
||||||
send_event(new DatabaseUpgradeEvent());
|
send_event(new DatabaseUpgradeEvent());
|
||||||
}
|
}
|
||||||
send_event(new InitExtEvent());
|
send_event(new InitExtEvent());
|
||||||
|
|
|
@ -24,9 +24,7 @@ _load_theme_files();
|
||||||
$page = new Page();
|
$page = new Page();
|
||||||
_load_event_listeners();
|
_load_event_listeners();
|
||||||
|
|
||||||
if (AUTO_DB_UPGRADE) {
|
send_event(new DatabaseUpgradeEvent());
|
||||||
send_event(new DatabaseUpgradeEvent());
|
|
||||||
}
|
|
||||||
send_event(new InitExtEvent());
|
send_event(new InitExtEvent());
|
||||||
|
|
||||||
abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase
|
abstract class ShimmiePHPUnitTestCase extends \PHPUnit\Framework\TestCase
|
||||||
|
|
|
@ -19,7 +19,6 @@ define("TRACE_FILE", null);
|
||||||
define("TRACE_THRESHOLD", 0.0);
|
define("TRACE_THRESHOLD", 0.0);
|
||||||
define("ENABLED_MODS", "imageboard");
|
define("ENABLED_MODS", "imageboard");
|
||||||
define("SCORE_VERSION", 'develop/'.VERSION);
|
define("SCORE_VERSION", 'develop/'.VERSION);
|
||||||
define("AUTO_DB_UPGRADE", true);
|
|
||||||
define("TIMEZONE", 'UTC');
|
define("TIMEZONE", 'UTC');
|
||||||
define("BASE_HREF", "/");
|
define("BASE_HREF", "/");
|
||||||
define("CLI_LOG_LEVEL", 50);
|
define("CLI_LOG_LEVEL", 50);
|
||||||
|
|
Reference in a new issue