dynamic/silverstripe-classname-update-tasks

Module that updates legacy classnames stored in the database to FQN

Installs: 3 062

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 7

Forks: 4

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0-alpha3 2018-08-07 20:54 UTC

This package is auto-updated.

Last update: 2024-12-12 08:34:56 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.