summaryrefslogtreecommitdiff
path: root/maintenance/updateRestrictions.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/updateRestrictions.php')
-rw-r--r--maintenance/updateRestrictions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php
index 9503d0b7..c8cebfc4 100644
--- a/maintenance/updateRestrictions.php
+++ b/maintenance/updateRestrictions.php
@@ -56,7 +56,7 @@ function migrate_page_restrictions( $db ) {
# We use insert() and not replace() as Article.php replaces
# page_restrictions with '' when protected in the restrictions table
if ( count( $batch ) ) {
- $db->insert( 'page_restrictions', $batch, __FUNCTION__ );
+ $db->insert( 'page_restrictions', $batch, __FUNCTION__, array( 'IGNORE' ) );
}
$blockStart += BATCH_SIZE;
$blockEnd += BATCH_SIZE;