diff --git a/src/Tasks/OaiRecordsDeleteAll.php b/src/Tasks/OaiRecordsDeleteAll.php new file mode 100644 index 0000000..d34c04d --- /dev/null +++ b/src/Tasks/OaiRecordsDeleteAll.php @@ -0,0 +1,29 @@ +get('table_name'))); + + echo 'Truncated OAI Records table'; + } + +} diff --git a/src/Tasks/UpdateOaiRecords.php b/src/Tasks/OaiRecordsUpdateExisting.php similarity index 82% rename from src/Tasks/UpdateOaiRecords.php rename to src/Tasks/OaiRecordsUpdateExisting.php index 306091d..788d5e6 100644 --- a/src/Tasks/UpdateOaiRecords.php +++ b/src/Tasks/OaiRecordsUpdateExisting.php @@ -9,12 +9,12 @@ use Terraformers\OpenArchive\Jobs\OaiRecordUpdateJob; use Terraformers\OpenArchive\Models\OaiRecord; -class UpdateOaiRecords extends BuildTask +class OaiRecordsUpdateExisting extends BuildTask { - private static $segment = 'update-oai-records'; // phpcs:ignore + private static $segment = 'oai-records-update-existing'; // phpcs:ignore - protected $title = 'Update OAI Records'; // phpcs:ignore + protected $title = 'OAI Records - Update Existing'; // phpcs:ignore protected $description = 'Queue update jobs for all existing OAI Records'; // phpcs:ignore