dynamic / silverstripe-classname-update-tasks
Module that updates legacy classnames stored in the database to FQN
Installs: 2 959
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 4
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/recipe-cms: ^1.0 || ^4.0
Requires (Dev)
- phpunit/phpunit: ^5.7
- silverstripe/upgrader: ^1.1@dev
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2024-08-12 07:49:55 UTC
README
Summary
This module allows for mappping legacy classnames to new classnames. This is most useful when migrating a website from SilverStripe 3 to SilverStripe 4 as classnames stored in the database are now FQN.
Requirements
- SilverStripe CMS Recipe ^1.0
Installation
composer require-dev dynamic/silverstripe-classname-update-tasks
Usage
- Upgrade your codebase with the SilverStripe Upgrader Tool.
- Import your database into your upgraded SilverStripe 4 website.
- Set the config for your
.upgrade.yml
absolute path for the task:
Dynamic\ClassNameUpdate\BuildTasks\DatabaseClassNameUpdateTask: upgrade_file_path: "/abs/path/to/.upgrade.yml"
- Run the "Database ClassName Update Task" from cli or the browser.
- Be sure to check if there are any ClassNames that didnot update properly.