mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MNT Remove legacy upgrader config
This commit is contained in:
parent
f2b7f4a190
commit
02c5980dde
20
.upgrade.yml
20
.upgrade.yml
@ -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
|
@ -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
|
@ -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'),
|
||||
|
@ -29,7 +29,6 @@ class SubsitesTreeDropdownField extends TreeDropdownField
|
||||
/**
|
||||
* Extra HTML classes
|
||||
*
|
||||
* @skipUpgrade
|
||||
* @var string[]
|
||||
*/
|
||||
protected $extraClasses = ['SubsitesTreeDropdownField'];
|
||||
|
@ -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"')
|
||||
|
Loading…
Reference in New Issue
Block a user