*/ require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that purges old text records from the database. * * @ingroup Maintenance */ class PurgeOldText extends Maintenance { public function __construct() { parent::__construct(); $this->addDescription( 'Purge old text records from the database' ); $this->addOption( 'purge', 'Performs the deletion' ); } public function execute() { $this->purgeRedundantText( $this->hasOption( 'purge' ) ); } } $maintClass = "PurgeOldText"; require_once RUN_MAINTENANCE_IF_MAIN;