Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-04-19 17:50:23 +0300
committerJames Lopez <james@jameslopez.es>2017-04-19 17:50:23 +0300
commit71a594c676c6e0e66fa3ff94647c053136d872c3 (patch)
tree4b38f5a427c304c309bd528a9a28f3792ee229de /db
parentdb50cb18af92dfd7212c4de6ec61f51fa454f684 (diff)
fix migration
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb b/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb
index 41508c2dc95..ff255148311 100644
--- a/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb
+++ b/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb
@@ -2,6 +2,8 @@
class ConvertClosedToStateInMilestone < ActiveRecord::Migration
include Gitlab::Database
+ DOWNTIME = false
+
def up
execute "UPDATE #{table_name} SET state = 'closed' WHERE closed = #{true_value}"
execute "UPDATE #{table_name} SET state = 'active' WHERE closed = #{false_value}"