X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=includes%2Finstaller%2FDatabaseUpdater.php;h=b32be3953a7cad9f6fc42b4dbf5acf64339c4365;hb=6497541c9c089966ce7d3b0e0abd6b68192d30d8;hp=24f7dc856cd898e8ecd62eaf046e2c6e3a3b0ec4;hpb=14d9e80ba42c471f1c9e92c5cb6808b4723b5945;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index 24f7dc856c..b32be3953a 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -20,7 +20,6 @@ * @file * @ingroup Deployment */ -use Wikimedia\Rdbms\Database; use Wikimedia\Rdbms\IDatabase; use Wikimedia\Rdbms\IMaintainableDatabase; use MediaWiki\MediaWikiServices; @@ -60,7 +59,7 @@ abstract class DatabaseUpdater { /** * Handle to the database subclass * - * @var Database + * @var IMaintainableDatabase */ protected $db; @@ -111,11 +110,15 @@ abstract class DatabaseUpdater { protected $holdContentHandlerUseDB = true; /** - * @param Database &$db To perform updates on + * @param IMaintainableDatabase &$db To perform updates on * @param bool $shared Whether to perform updates on shared tables * @param Maintenance|null $maintenance Maintenance object which created us */ - protected function __construct( Database &$db, $shared, Maintenance $maintenance = null ) { + protected function __construct( + IMaintainableDatabase &$db, + $shared, + Maintenance $maintenance = null + ) { $this->db = $db; $this->db->setFlag( DBO_DDLMODE ); // For Oracle's handling of schema files $this->shared = $shared; @@ -203,7 +206,7 @@ abstract class DatabaseUpdater { /** * Get a database connection to run updates * - * @return Database + * @return IMaintainableDatabase */ public function getDB() { return $this->db;