Skip to content

Commit

Permalink
REFACTOR migrate to Silverstripe Linkfield (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Aug 14, 2024
1 parent 218d4b0 commit e008ace
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ A block that displays content in collapsable panels.
## Requirements

* dnadesign/silverstripe-elemental: ^5
* dynamic/silverstripe-elemental-baseobject: ^4
* dynamic/silverstripe-elemental-baseobject: ^5
* jonom/focuspoint: ^5
* symbiote/silverstripe-gridfieldextensions: ^4

## Installation
Expand All @@ -26,18 +27,7 @@ See [License](LICENSE.md)

## Upgrading from version 2

Elemental Accordion drops `sheadawson/silverstripe-linkable` usage in favor of `gorriecoe/silverstripe-linkfield`. To avoid data loss, install the `dynamic/silverstripe-link-migrator` module as follows:

```markdown
composer require dynamic/silverstripe-link-migrator
```

Then, run the task "Linkable to SilverStripe Link Migration" via `/dev/tasks`, or cli via:
```markdown
vendor/bin/sake dev/tasks/LinkableMigrationTask
```

This will populate all of the new Link fields with data from the old class.
Elemental Accordion drops `gorriecoe/silverstripe-linkfield` usage in favor of `silverstripe/linkfield`.

## Usage

Expand Down
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
],
"require": {
"dnadesign/silverstripe-elemental": "^5",
"dynamic/silverstripe-elemental-baseobject": "^4",
"dynamic/silverstripe-elemental-baseobject": "^5",
"jonom/focuspoint": "^5.0",
"silverstripe/framework": "^5",
"symbiote/silverstripe-gridfieldextensions": "^4"
},
"require-dev": {
Expand All @@ -38,18 +37,18 @@
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/vendor-plugin": true,
"silverstripe/recipe-plugin": true
"silverstripe/recipe-plugin": true,
"silverstripe/vendor-plugin": true
},
"process-timeout": 600
},
"scripts": {
"lint": "vendor/bin/phpcs src/ tests/",
"lint-clean": "vendor/bin/phpcbf src/ tests/"
},
"extra": {
"branch-alias": {
"dev-master": "5.x-dev"
}
},
"scripts": {
"lint": "vendor/bin/phpcs src/ tests/",
"lint-clean": "vendor/bin/phpcbf src/ tests/"
}
}

0 comments on commit e008ace

Please sign in to comment.