We want to do this next Wednesday, 2017-07-12.
Rescheduled to Thursday, 2017-07-20, since there was no deployment on the week of July 10th (build problems).
- Merge config change: https://gerrit.wikimedia.org/r/#/c/363200/
- Remove existing constraints:
php maintenance/runScript.php extensions/WikibaseQualityConstraints/maintenance/UpdateConstraintsTable.php --csv-file /dev/null
- Import existing constraints from statements (depends on T169218):
php maintenance/runScript.php extensions/WikibaseQualityConstraints/maintenance/ImportConstraintStatements.php
(Note: without --quiet, this produces one line of output per property, so about 4000 lines on Wikidata. Might want to redirect it to a file.)
In principle, these can happen in any order (UpdateConstraintsTable.php does not drop rows that ImportConstraintStatements.php creates). (Edit: The config change should not happen too long after the ImportConstraintStatements script is run, otherwise property updates that happen in between might be missed.)