diff --git a/conf/config.php b/conf/config.php index ffefc16..211db4c 100644 --- a/conf/config.php +++ b/conf/config.php @@ -52,7 +52,7 @@ define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'); // Run automatically database migrations // If set to false, you will have to run manually the SQL migrations from the CLI during the next Kanboard upgrade // Do not run the migrations from multiple processes at the same time (example: web page + background worker) -define('DB_RUN_MIGRATIONS', true); +define('DB_RUN_MIGRATIONS', false); // Database driver: sqlite, mysql or postgres (sqlite by default) define('DB_DRIVER', 'mysql'); diff --git a/scripts/upgrade b/scripts/upgrade index b5fa187..794b44f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,6 +64,9 @@ sudo sed -i "s/yuno_domain/${domain}/g" ${DESTDIR}/config.php sudo chown -R root:root ${DESTDIR} sudo chown -R www-data:www-data ${DESTDIR}/data +# Launch database migration +sudo ${DESTDIR}/cli db:migrate + # Copy and set php-fpm configuration phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf" sed -i "s@#USER#@${app}@g" ../conf/php-fpm.conf