https://github.com/dynamic/silverstripe-classname-update-tasks
Update legacy database classnames to FQN.
https://github.com/dynamic/silverstripe-classname-update-tasks
Last synced: 7 months ago
JSON representation
Update legacy database classnames to FQN.
- Host: GitHub
- URL: https://github.com/dynamic/silverstripe-classname-update-tasks
- Owner: dynamic
- License: bsd-3-clause
- Created: 2018-06-13T18:56:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-07T20:55:02.000Z (almost 7 years ago)
- Last Synced: 2023-07-28T08:32:07.070Z (almost 2 years ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 1
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SilverStripe Classname Update Tasks
### 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](https://packagist.org/packages/silverstripe/upgrader).
- Import your database into your upgraded SilverStripe 4 website.
- Set the config for your `.upgrade.yml` absolute path for the task:```yml
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.