diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-12-02 19:16:50 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-12-02 19:16:50 -0500 |
commit | f2fd5d75d98e01ab58a71b718d630b9b2ae8e16f (patch) | |
tree | 6c691b5f0024b822df75a37644e804c864d8f8e7 /app/constants.php | |
parent | b5671a2dc04b63a8d7787b1137e72d7858955d98 (diff) |
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
Diffstat (limited to 'app/constants.php')
-rw-r--r-- | app/constants.php | 3 |
1 files changed, 3 insertions, 0 deletions
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'); |