aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-24 22:01:52 +0200
committerThomas Lange <code@nerdmind.de>2021-06-24 22:01:52 +0200
commit366d0de19c012821ef587d5fdb9557c339b43303 (patch)
treeb6e30ae564ae4692f14adc0cf30cb9e8e974cc2a
parented933af3c30e168c2ec88d6fc7f3242a31219d70 (diff)
downloadblog-366d0de19c012821ef587d5fdb9557c339b43303.tar.gz
blog-366d0de19c012821ef587d5fdb9557c339b43303.tar.xz
blog-366d0de19c012821ef587d5fdb9557c339b43303.zip
Add configuration option MIGRATOR.ENABLED
-rw-r--r--core/application.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/application.php b/core/application.php
index d6c9bd0..ecb7947 100644
--- a/core/application.php
+++ b/core/application.php
@@ -48,6 +48,7 @@ foreach([
'DATABASE.BASENAME' => 'blog',
'DATABASE.USERNAME' => 'blog',
'DATABASE.PASSWORD' => '',
+ 'MIGRATOR.ENABLED' => TRUE,
'TEMPLATE.NAME' => 'default',
'TEMPLATE.LANG' => 'en',
'ADMIN.TEMPLATE' => 'admin',
@@ -144,7 +145,9 @@ $Database = Application::getDatabase();
#===============================================================================
# Include migration detection
#===============================================================================
-require 'migrations.php';
+if(Application::get('MIGRATOR.ENABLED')) {
+ require 'migrations.php';
+}
#===============================================================================
# Check if "304 Not Modified" and ETag header should be sent