Skip to content
Snippets Groups Projects
Verified Commit a8812aaa authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Fix migrations not specifying DOWNTIME


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 67de3543
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -5,7 +5,11 @@ class AddIndexOnRequestedAtToMembers < ActiveRecord::Migration
 
disable_ddl_transaction!
 
def change
def up
add_concurrent_index :members, :requested_at
end
def down
remove_index :members, :requested_at if index_exists? :members, :requested_at
end
end
Loading
Loading
@@ -8,7 +8,11 @@ class AddIndexOnRunnersLocked < ActiveRecord::Migration
 
disable_ddl_transaction!
 
def change
def up
add_concurrent_index :ci_runners, :locked
end
def down
remove_index :ci_runners, :locked if index_exists? :ci_runners, :locked
end
end
class AddIndexForPipelineUserId < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
 
DOWNTIME = false
disable_ddl_transaction!
 
def change
def up
add_concurrent_index :ci_commits, :user_id
end
def down
remove_index :ci_commits, :user_id if index_exists? :ci_commits, :user_id
end
end
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