MNT Remove legacy upgrader config

This commit is contained in:
Steve Boyd 2023-01-20 16:48:50 +13:00
parent f2b7f4a190
commit 02c5980dde
5 changed files with 0 additions and 35 deletions

View File

@ -1,20 +0,0 @@
mappings:
SubsiteAdmin: SilverStripe\Subsites\Admin\SubsiteAdmin
SubsiteXHRController: SilverStripe\Subsites\Controller\SubsiteXHRController
CMSPageAddControllerExtension: SilverStripe\Subsites\Extensions\CMSPageAddControllerExtension
ControllerSubsites: SilverStripe\Subsites\Extensions\ControllerSubsites
ErrorPageSubsite: SilverStripe\Subsites\Extensions\ErrorPageSubsite
FileSubsites: SilverStripe\Subsites\Extensions\FileSubsites
GroupSubsites: SilverStripe\Subsites\Extensions\GroupSubsites
LeftAndMainSubsites: SilverStripe\Subsites\Extensions\LeftAndMainSubsites
SiteConfigSubsites: SilverStripe\Subsites\Extensions\SiteConfigSubsites
SiteTreeSubsites: SilverStripe\Subsites\Extensions\SiteTreeSubsites
SubsiteMenuExtension: SilverStripe\Subsites\Extensions\SubsiteMenuExtension
GridFieldSubsiteDetailForm: SilverStripe\Subsites\Forms\GridFieldSubsiteDetailForm
GridFieldSubsiteDetailForm_ItemRequest: SilverStripe\Subsites\Forms\GridFieldSubsiteDetailFormItemRequest
SubsitesTreeDropdownField: SilverStripe\Subsites\Forms\SubsitesTreeDropdownField
Subsite: SilverStripe\Subsites\Model\Subsite
SubsiteDomain: SilverStripe\Subsites\Model\SubsiteDomain
SubsitesVirtualPage: SilverStripe\Subsites\Pages\SubsitesVirtualPage
SubsiteReportWrapper: SilverStripe\Subsites\Reports\SubsiteReportWrapper
SubsiteCopyPagesTask: SilverStripe\Subsites\Tasks\SubsiteCopyPagesTask

View File

@ -1,9 +0,0 @@
---
Name: subsites-legacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
Subsite: SilverStripe\Subsites\Model\Subsite
SubsiteDomain: SilverStripe\Subsites\Model\SubsiteDomain
SubsitesVirtualPage: SilverStripe\Subsites\Pages\SubsitesVirtualPage

View File

@ -25,7 +25,6 @@ class FolderFormFactoryExtension extends Extension
ksort($values);
if ($sites) {
// Dropdown needed to move folders between subsites
/** @var @skipUpgrade */
$dropdown = DropdownField::create(
'SubsiteID',
_t(__CLASS__ . '.SubsiteFieldLabel', 'Subsite'),

View File

@ -29,7 +29,6 @@ class SubsitesTreeDropdownField extends TreeDropdownField
/**
* Extra HTML classes
*
* @skipUpgrade
* @var string[]
*/
protected $extraClasses = ['SubsitesTreeDropdownField'];

View File

@ -279,7 +279,6 @@ class Subsite extends DataObject
$schema = DataObject::getSchema();
/** @skipUpgrade */
$domainTableName = $schema->tableName(SubsiteDomain::class);
if (!DB::get_schema()->hasTable($domainTableName)) {
@ -288,7 +287,6 @@ class Subsite extends DataObject
}
$subsiteTableName = $schema->tableName(__CLASS__);
/** @skipUpgrade */
$matchingDomains = DataObject::get(
SubsiteDomain::class,
"'$SQL_host' LIKE replace(\"{$domainTableName}\".\"Domain\",'*','%')",
@ -470,7 +468,6 @@ class Subsite extends DataObject
return self::$cache_accessible_sites[$cacheKey];
}
/** @skipUpgrade */
$subsites = DataList::create(Subsite::class)
->where("\"Subsite\".\"Title\" != ''")
->leftJoin('Group_Subsites', '"Group_Subsites"."SubsiteID" = "Subsite"."ID"')
@ -494,7 +491,6 @@ class Subsite extends DataObject
}
/** @var DataList $rolesSubsites */
/** @skipUpgrade */
$rolesSubsites = DataList::create(Subsite::class)
->where("\"Subsite\".\"Title\" != ''")
->leftJoin('Group_Subsites', '"Group_Subsites"."SubsiteID" = "Subsite"."ID"')