updater now shows the SQLite file being used
authorAntoine Musso <hashar@free.fr>
Tue, 6 Nov 2012 12:55:58 +0000 (13:55 +0100)
committerAntoine Musso <hashar@free.fr>
Tue, 6 Nov 2012 12:59:34 +0000 (13:59 +0100)
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

index cb6f06b..20e6068 100644 (file)
@@ -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' ) ) {