diff --git a/includes/sql-schema/update.php b/includes/sql-schema/update.php index 66a1143299..39a825661a 100644 --- a/includes/sql-schema/update.php +++ b/includes/sql-schema/update.php @@ -15,8 +15,6 @@ * See COPYING for more details. */ -set_lock('schema'); - if (!isset($debug) && php_sapi_name() == 'cli') { // Not called from within discovery, let's load up the necessary stuff. $init_modules = array(); @@ -26,6 +24,8 @@ if (!isset($debug) && php_sapi_name() == 'cli') { $debug = isset($options['d']); } +set_lock('schema'); + d_echo("DB Schema update started....\n"); if (db_schema_is_current()) {