5 use MediaWiki\DB\PatchFileLocation;
13 use PatchFileLocation;
14 use McrSchemaDetection;
27 return [
'content',
'content_models',
'slots',
'slot_roles' ];
41 if ( !$this->hasMcrTables( $db ) ) {
42 $overrides[
'create'] = [
'slots',
'content',
'slot_roles',
'content_models', ];
43 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'patch-slot_roles' );
44 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'patch-content_models' );
45 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'patch-content' );
46 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'patch-slots' );
49 if ( !$this->hasPreMcrFields( $db ) ) {
50 $overrides[
'alter'][] =
'revision';
51 $overrides[
'scripts'][] = $this->getSqlPatchPath( $db,
'create-pre-mcr-fields', __DIR__ );