diff --git a/maintenance/backfillReadBundles.php b/maintenance/backfillReadBundles.php index c6a54dd3b..66a8c6455 100644 --- a/maintenance/backfillReadBundles.php +++ b/maintenance/backfillReadBundles.php @@ -13,6 +13,8 @@ class BackfillReadBundles extends Maintenance { $this->mDescription = "Backfill echo_notification.notification_read_timestamp for bundles"; $this->setBatchSize( 300 ); + + $this->requireExtension( 'Echo' ); } public function execute() { diff --git a/maintenance/backfillUnreadWikis.php b/maintenance/backfillUnreadWikis.php index 9914309de..18f13a8db 100644 --- a/maintenance/backfillUnreadWikis.php +++ b/maintenance/backfillUnreadWikis.php @@ -13,6 +13,7 @@ class BackfillUnreadWikis extends Maintenance { $this->mDescription = "Backfill echo_unread_wikis table"; $this->addOption( 'rebuild', 'Only recompute already-existing rows' ); $this->setBatchSize( 300 ); + $this->requireExtension( 'Echo' ); } public function execute() { diff --git a/maintenance/generateSampleNotifications.php b/maintenance/generateSampleNotifications.php index 0793f836b..8fd7994c7 100644 --- a/maintenance/generateSampleNotifications.php +++ b/maintenance/generateSampleNotifications.php @@ -55,6 +55,8 @@ class GenerateSampleNotifications extends Maintenance { 'other', 'Name of another user involved with the notifications', true, true, 'o' ); + + $this->requireExtension( 'Echo' ); } public function execute() { diff --git a/maintenance/processEchoEmailBatch.php b/maintenance/processEchoEmailBatch.php index ad943311a..34f726c78 100644 --- a/maintenance/processEchoEmailBatch.php +++ b/maintenance/processEchoEmailBatch.php @@ -25,6 +25,8 @@ class ProcessEchoEmailBatch extends Maintenance { "ignoreConfiguredSchedule", "Send all pending notifications immediately even if configured to be weekly or daily.", false, false, "i" ); + + $this->requireExtension( 'Echo' ); } public function execute() { diff --git a/maintenance/removeInvalidNotification.php b/maintenance/removeInvalidNotification.php index 588b564e0..65b4ddd31 100644 --- a/maintenance/removeInvalidNotification.php +++ b/maintenance/removeInvalidNotification.php @@ -18,6 +18,11 @@ class RemoveInvalidNotification extends Maintenance { protected $batchSize = 500; protected $invalidEventType = array( 'article-linked' ); + public function __construct() { + $this->mDescription = "Removes invalid notifications from the database."; + $this->requireExtension( 'Echo' ); + } + public function execute() { if ( !$this->invalidEventType ) { $this->output( "There is nothing to process\n" ); diff --git a/maintenance/removeOrphanedEvents.php b/maintenance/removeOrphanedEvents.php index a639cd7ca..047265a42 100644 --- a/maintenance/removeOrphanedEvents.php +++ b/maintenance/removeOrphanedEvents.php @@ -21,6 +21,8 @@ class RemoveOrphanedEvents extends LoggedUpdateMaintenance { $this->mDescription = "Remove rows from echo_event that don't have corresponding rows in echo_notification"; $this->setBatchSize( 500 ); + + $this->requireExtension( 'Echo' ); } public function getUpdateKey() { diff --git a/maintenance/testDiscussionParser.php b/maintenance/testDiscussionParser.php index 0f84dc7eb..baf3bb9de 100644 --- a/maintenance/testDiscussionParser.php +++ b/maintenance/testDiscussionParser.php @@ -12,6 +12,8 @@ class TestDiscussionParser extends Maintenance { $this->mDescription = "Takes enwiki revision IDs and attempts to identify interested users"; $this->addArg( 'revisions', 'Revision IDs, separated by commas', true /*required*/ ); + + $this->requireExtension( 'Echo' ); } public function execute() { diff --git a/maintenance/updateEchoSchemaForSuppression.php b/maintenance/updateEchoSchemaForSuppression.php index 6224af5f1..cfba653dc 100644 --- a/maintenance/updateEchoSchemaForSuppression.php +++ b/maintenance/updateEchoSchemaForSuppression.php @@ -29,6 +29,7 @@ class UpdateEchoSchemaForSuppression extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); $this->setBatchSize( 500 ); + $this->requireExtension( 'Echo' ); } public function getUpdateKey() {