public function __construct()
 {
     parent::__construct();
     $this->mDescription = 'Adjusts edit counts for all existing Flow data';
     $this->addOption('start', 'Timestamp to start counting revisions at', false, true);
     $this->addOption('stop', 'Timestamp to stop counting revisions at', false, true);
     $this->setBatchSize(300);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = 'Backfills missing moderation logs from flow_revision.  Must be run separately for each affected wiki.';
     $this->addOption('start', 'rev_id of last moderation revision that was logged correctly before regression.', true, true);
     $this->addOption('stop', 'rev_id of first revision that was logged correctly after moderation logging fix.', true, true);
     $this->setBatchSize(300);
 }
 public function execute()
 {
     if ($this->getOption('file') || $this->hasOption('multiversiononly')) {
         $this->doDBUpdates();
         // skip update log checks/saves
     } else {
         parent::execute();
     }
 }
Exemplo n.º 4
0
    public function __construct()
    {
        parent::__construct();
        $this->addDescription(<<<TEXT
This script will clean up the category table by removing entries for empty
categories without a description page and adding entries for empty categories
with a description page. It will print out progress indicators every batch. The
script is perfectly safe to run on large, live wikis, and running it multiple
times is harmless. You may want to use the throttling options if it's causing
too much load; they will not affect correctness.

If the script is stopped and later resumed, you can use the --mode and --begin
options with the last printed progress indicator to pick up where you left off.

When the script has finished, it will make a note of this in the database, and
will not run again without the --force option.
TEXT
);
        $this->addOption('mode', '"add" empty categories with description pages, "remove" empty categories ' . 'without description pages, or "both"', false, true);
        $this->addOption('begin', 'Only do categories whose names are alphabetically after the provided name', false, true);
        $this->addOption('throttle', 'Wait this many milliseconds after each batch. Default: 0', false, true);
    }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Updates content length for revisions with unset content length.";
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Populate the *_from_namespace fields";
     $this->addOption('lastUpdatedId', "Highest page_id with updated links", false, true);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Update xxx_user_wiki field in tables: flow_workflow, flow_tree_revision, flow_revision";
     $this->setBatchSize(300);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Update flow_revision.rev_type_id";
     $this->setBatchSize(300);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Populates the rev_len field";
     $this->setBatchSize(200);
 }
Exemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Populates rev_parent_id');
 }
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Fix instances of JSON pages prior to them being the ContentHandler default');
     $this->setBatchSize(100);
 }
Exemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Add RFC and PMID to the interwiki database table');
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Update workflow_page_id with the page id of its specified ns/title";
     $this->setBatchSize(300);
 }
 /**
  * parent::error() is a protected method, only way to access it from the
  * outside is to make it public.
  *
  * @param string $err
  * @param int $die
  */
 public function error($err, $die = 0)
 {
     parent::error($err, $die);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Populates links tables for wikis deployed before change 110090";
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Populates rev_parent_id";
 }
Exemplo n.º 17
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Populate the fa_sha1 field from fa_storage_key');
 }
Exemplo n.º 18
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Populates the log_user_text field";
     $this->setBatchSize(100);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Update moodbar_feedback.mbf_latest_response with the corresponding latest moodbar_feedback_response.mbfr_id";
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Populate the fa_sha1 field from fa_storage_key";
 }
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Populates rc_source field of the recentchanges table with the data in rc_type.');
     $this->setBatchSize(100);
 }
Exemplo n.º 22
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Migrate log params to new table and index for searching";
     $this->setBatchSize(100);
 }
Exemplo n.º 23
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Populates the rev_sha1 and ar_sha1 fields');
     $this->setBatchSize(200);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Fixes any entries in the externallinks table containing protocol-relative URLs";
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Creates Template:FlowMention, which is used te render mentions in Flow's Visual Editor";
 }