From 366d0de19c012821ef587d5fdb9557c339b43303 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 24 Jun 2021 22:01:52 +0200 Subject: Add configuration option MIGRATOR.ENABLED --- core/application.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3