Sunnysideup\MigrateData\Tasks\UpgradeOnlyCheckYMLClassNames
Reorganizing the SiteTree led to AsbestosLicenceHolders records being in the _Live table but not in the draft table. This tasks should be run once to get rid of them.
Synopsis
class UpgradeOnlyCheckYMLClassNames
extends MigrateDataTaskBase
{
- // members
- protected string $title = 'Load your list of class names';
- protected string $description = 'Upgrade ONLY!';
- protected boolean $enabled = true;
- private static array $folders_to_ignore = ;
- private static array $files_to_ignore = ;
- // Inherited members from MigrateDataTaskBase
- protected string $title;
- protected string $description;
- protected boolean $enabled;
- protected $_schema;
- protected $_schemaForDataObject;
- // methods
- protected void performMigration()
- private void getSubDirectories()
- private void getYMLFiles()
- // Inherited methods from MigrateDataTaskBase
- public void run()
- protected abstract void performMigration()
- protected void runMoveData()
- protected void migrateSimple()
- // Inherited methods from HelperMethods
- public void deleteObject()
- protected void runSQLQueries()
- protected void runUpdateQuery()
- protected void runPublishClasses()
- protected void makeTableObsolete()
- protected void tableExists()
- protected void fieldExists()
- protected void renameField()
- protected void getSchema()
- protected void getSchemaForDataObject()
- protected void getListOfIDs()
- protected void getListAsIterableQuery()
- protected void writeObject()
- protected void writePage()
Hierarchy
Members
private
- $files_to_ignore
- $folders_to_ignore
protected
- $_schema
- $_schemaForDataObject
- $description
- $description
- $enabled
- $enabled
- $title — string
- $title
Methods
private
protected
- performMigration() — Implement this method in the task subclass to execute via the TaskRunner.
Inherited from Sunnysideup\MigrateData\Tasks\MigrateDataTaskBase
protected
- migrateSimple() — Migrates data from one table to another.
- performMigration() — Queries the config for Migrate definitions, and runs migrations if you extend this task then overwrite it this method.
- runMoveData() — data needs to be in this format: [ 'include_inserts' => true|false, #assumed true if not provided 'old_table' => 'foo', 'new_table' => 'bar' (can be the same!).
public
Inherited from Sunnysideup\MigrateData\Traits\HelperMethods
protected
- fieldExists()
- getListAsIterableQuery()
- getListOfIDs()
- getSchema()
- getSchemaForDataObject()
- makeTableObsolete()
- renameField()
- runPublishClasses()
- runSQLQueries()
- runUpdateQuery()
- tableExists()
- writeObject()
- writePage()