Sunnysideup\MigrateData\Tasks\DeleteAllObsoleteFieldsAndTables
Update all systems.
Class UpdateSystemsWithProductCodeVariantKeywords
Synopsis
class DeleteAllObsoleteFieldsAndTables
extends BuildTask
{
- // members
- protected string $title = 'Delete all obsolete tables and fields';
- protected string $description = 'Remove all tables and fields with the words _obselete, _copy, or _backup in it. Set forreal=1 to run it for real';
- private static array $deleted_tables = ;
- private static array $deleted_columns = ;
- private static array $deleted_indexes = ;
- // methods
- public void run()
- protected void log()
- protected void execute()
- protected void getTables()
- protected void deleteFieldsAndIndexes()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $deleted_columns
—
array
These columns should be deleted. * key indicates any table with columns listed in the array value should be removed. If the key is a specific table, only columns listed in the array for that table will be removed. - $deleted_indexes
—
array
If any of these indexes are found in any tables, they will be removed. - $deleted_tables
—
array
If any of these tables are found in the database, they will be removed.
protected
- $description
- $title