* @file
* @ingroup Deployment
*/
+use Wikimedia\Rdbms\IDatabase;
use MediaWiki\MediaWikiServices;
require_once __DIR__ . '/../../maintenance/Maintenance.php';
*/
protected $db;
+ /**
+ * @var Maintenance
+ */
+ protected $maintenance;
+
protected $shared = false;
/**
* Writes the schema updates desired to a file for the DB Admin to run.
* @param array $schemaUpdate
*/
- private function writeSchemaUpdateFile( $schemaUpdate = [] ) {
+ private function writeSchemaUpdateFile( array $schemaUpdate = [] ) {
$updates = $this->updatesSkipped;
$this->updatesSkipped = [];
*
* @param array $what What updates to perform
*/
- public function doUpdates( $what = [ 'core', 'extensions', 'stats' ] ) {
+ public function doUpdates( array $what = [ 'core', 'extensions', 'stats' ] ) {
$this->db->setSchemaVars( $this->getSchemaVars() );
$what = array_flip( $what );