* @ingroup Maintenance
*/
+use Wikimedia\Rdbms\DBQueryError;
+
/**
* When using shared tables that are referenced by foreign keys on local
* tables you have to change the constraints on local tables.
class AlterSharedConstraints extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Alter foreign key to reference master tables in shared database setup.";
+ $this->addDescription( 'Alter foreign key to reference master tables in shared database setup.' );
}
public function getDbType() {
AND ucc.constraint_name = uc.constraint_name
AND uccpk.constraint_name = uc.r_constraint_name
AND uccpk.table_name = '$ltable'" );
- while ( ( $row = $result->fetchRow() ) !== false ) {
+ while ( ( $row = $result->fetchRow() ) !== false ) {
$this->output( "Altering {$row['constraint_name']} ..." );
try {