From 678e164fe0ed0abd065bd38b81b89c4bc177d58a Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 6 Nov 2012 13:55:58 +0100 Subject: [PATCH] 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 --- maintenance/update.php | 3 +++ 1 file changed, 3 insertions(+) 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' ) ) { -- 2.20.1