From f2fd5d75d98e01ab58a71b718d630b9b2ae8e16f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 2 Dec 2016 19:16:50 -0500 Subject: Add config parameter to toggle automatic SQL migrations - Add two command line opterations to show schema version and to execute SQL migrations - Add new configuration parameter to enable or disable SQL migrations --- app/constants.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/constants.php') diff --git a/app/constants.php b/app/constants.php index 3adb0835..ba14cde6 100644 --- a/app/constants.php +++ b/app/constants.php @@ -35,6 +35,9 @@ defined('LOG_FILE') or define('LOG_FILE', DATA_DIR.DIRECTORY_SEPARATOR.'debug.lo // Application version defined('APP_VERSION') or define('APP_VERSION', build_app_version('$Format:%d$', '$Format:%H$')); +// Run automatically database migrations +defined('DB_RUN_MIGRATIONS') or define('DB_RUN_MIGRATIONS', true); + // Database driver: sqlite, mysql or postgres defined('DB_DRIVER') or define('DB_DRIVER', 'sqlite'); -- cgit v1.2.3