Skip to content
Snippets Groups Projects
Commit db50cb18 authored by James Lopez's avatar James Lopez
Browse files

fix migration

parent 930e8c03
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -2,6 +2,8 @@
class ConvertClosedToStateInMergeRequest < ActiveRecord::Migration
include Gitlab::Database
 
DOWNTIME = false
def up
execute "UPDATE #{table_name} SET state = 'merged' WHERE closed = #{true_value} AND merged = #{true_value}"
execute "UPDATE #{table_name} SET state = 'closed' WHERE closed = #{true_value} AND merged = #{false_value}"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment