From: Antoine Musso Date: Tue, 6 Nov 2012 12:55:58 +0000 (+0100) Subject: updater now shows the SQLite file being used X-Git-Tag: 1.31.0-rc.0~21596^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=678e164fe0ed0abd065bd38b81b89c4bc177d58a;p=lhc%2Fweb%2Fwiklou.git updater now shows the SQLite file being used On continuous integration, we run several update.php with paths coming from environnement variables. To make sure the correct path is always used and assist in debugging, the maintenance/update.php script now print out the SQLite database full filename whenever we are using a SQLite database backend. Change-Id: I2bba919e054c1947c1d956d94998c2cf95fd9683 --- diff --git a/maintenance/update.php b/maintenance/update.php index cb6f06b2c2..20e6068540 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -108,6 +108,9 @@ class UpdateMediaWiki extends Maintenance { $db = wfGetDB( DB_MASTER ); $this->output( "Going to run database updates for " . wfWikiID() . "\n" ); + if( $db->getType() === 'sqlite' ) { + $this->output( "Using SQLite file: '{$db->mDatabaseFile}'\n" ); + } $this->output( "Depending on the size of your database this may take a while!\n" ); if ( !$this->hasOption( 'quick' ) ) {