diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-24 22:01:52 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-24 22:01:52 +0200 |
commit | 366d0de19c012821ef587d5fdb9557c339b43303 (patch) | |
tree | b6e30ae564ae4692f14adc0cf30cb9e8e974cc2a /core | |
parent | ed933af3c30e168c2ec88d6fc7f3242a31219d70 (diff) | |
download | blog-366d0de19c012821ef587d5fdb9557c339b43303.tar.gz blog-366d0de19c012821ef587d5fdb9557c339b43303.tar.xz blog-366d0de19c012821ef587d5fdb9557c339b43303.zip |
Add configuration option MIGRATOR.ENABLED
Diffstat (limited to 'core')
-rw-r--r-- | core/application.php | 5 |
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 |