From 0e3430dcbf8c19bce6b14909425cec14657796e6 Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Mon, 24 Dec 2018 17:31:47 -0600 Subject: [PATCH] migration - create legacy.yml for upgrades to SS4 (#198) --- _config/legacy.yml | 8 ++++++++ src/objects/Location.php | 2 ++ src/objects/LocationCategory.php | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 _config/legacy.yml diff --git a/_config/legacy.yml b/_config/legacy.yml new file mode 100644 index 0000000..05d32b0 --- /dev/null +++ b/_config/legacy.yml @@ -0,0 +1,8 @@ +--- +name: locatorlegacy +--- +SilverStripe\ORM\DatabaseAdmin: + classname_value_remapping: + Location: Dynamic\Locator\Location + Locator: Dynamic\Locator\Locator + LocationCategory: Dynamic\Locator\LocationCategory \ No newline at end of file diff --git a/src/objects/Location.php b/src/objects/Location.php index 068a686..f861ca4 100644 --- a/src/objects/Location.php +++ b/src/objects/Location.php @@ -152,6 +152,8 @@ public function getCMSFields() $fields->removeByName(array( 'Import_ID', + 'LinkTracking', + 'FileTracking', )); $fields->dataFieldByName('Website') diff --git a/src/objects/LocationCategory.php b/src/objects/LocationCategory.php index 5c2c002..d7d5dda 100644 --- a/src/objects/LocationCategory.php +++ b/src/objects/LocationCategory.php @@ -64,6 +64,8 @@ public function getCMSFields() $fields->removeByName([ 'Locations', 'LocationSet', + 'LinkTracking', + 'FileTracking', ]); if ($this->ID) {