5use MediaWiki\DB\PatchFileLocation;
10trait PreMcrSchemaOverride {
12 use PatchFileLocation;
13 use McrSchemaDetection;
40 if ( $this->hasMcrTables( $db ) ) {
41 $overrides[
'drop'] = [
'slots',
'content',
'slot_roles',
'content_models', ];
42 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'/drop-mcr-tables', __DIR__ );
45 if ( !$this->hasPreMcrFields( $db ) ) {
46 $overrides[
'alter'][] =
'revision';
47 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'/create-pre-mcr-fields', __DIR__ );
Advanced database interface for IDatabase handles that include maintenance methods.