Merge "Swap SET and WHERE statements in ChangeTags::undefineTag"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 14 Aug 2018 21:00:29 +0000 (21:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 14 Aug 2018 21:00:29 +0000 (21:00 +0000)
includes/changetags/ChangeTags.php

index 3bb777e..b5bf488 100644 (file)
@@ -916,8 +916,8 @@ class ChangeTags {
                if ( $wgChangeTagsSchemaMigrationStage > MIGRATION_OLD ) {
                        $dbw->update(
                                'change_tag_def',
-                               [ 'ctd_name' => $tag ],
                                [ 'ctd_user_defined' => 0 ],
+                               [ 'ctd_name' => $tag ],
                                __METHOD__
                        );