Commit a8812aaa authored by Rémy Coutable's avatar Rémy Coutable

Fix migrations not specifying DOWNTIME

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 67de3543
...@@ -5,7 +5,11 @@ class AddIndexOnRequestedAtToMembers < ActiveRecord::Migration ...@@ -5,7 +5,11 @@ class AddIndexOnRequestedAtToMembers < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
def change def up
add_concurrent_index :members, :requested_at add_concurrent_index :members, :requested_at
end end
def down
remove_index :members, :requested_at if index_exists? :members, :requested_at
end
end end
...@@ -8,7 +8,11 @@ class AddIndexOnRunnersLocked < ActiveRecord::Migration ...@@ -8,7 +8,11 @@ class AddIndexOnRunnersLocked < ActiveRecord::Migration
disable_ddl_transaction! disable_ddl_transaction!
def change def up
add_concurrent_index :ci_runners, :locked add_concurrent_index :ci_runners, :locked
end end
def down
remove_index :ci_runners, :locked if index_exists? :ci_runners, :locked
end
end end
class AddIndexForPipelineUserId < ActiveRecord::Migration class AddIndexForPipelineUserId < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction! disable_ddl_transaction!
def change def up
add_concurrent_index :ci_commits, :user_id add_concurrent_index :ci_commits, :user_id
end end
def down
remove_index :ci_commits, :user_id if index_exists? :ci_commits, :user_id
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment