You can follow the following steps to update Elemental 2.x to elemental 3.x
- Change in your
composer.json
"thewebmen/silverstripe-elemental-grid": "^2.0"
=>"wedevelopnl/silverstripe-elemental-grid": "^3.0"
- Run
composer update wedevelopnl/silverstripe-elemental-grid
- Update all Configuration yaml-references to the new namespace
TheWebmen\ElementalGrid\ElementalConfig
=>WeDevelop\ElementalGrid\ElementalConfig
- (if used)
TheWebmen\ElementalGrid\Models\ElementRow
=>WeDevelop\ElementalGrid\Models\ElementRow
- (if used )
TheWebmen\ElementalGrid\Extensions\ElementalPageExtension
=>WeDevelop\ElementalGrid\Extensions\ElementalPageExtension
=>WeDevelop\ElementalGrid\Extensions\ElementalPageExtension
- If you have local template overrides for
TheWebmen/ElementalGrid/Models/ElementRow.ss
you need to update the folder name toWeDevelop/ElementalGrid/Models/ElementRow.ss
. - Run an
dev/build
- Run the following task to migrate the namespace for
ElementRow
in the databasephp vendor/silverstripe/framework/cli-script.php dev/tasks/migrate-elemental-grid-namespace
- You're ready to go!