Commit f18bdbb1 authored by Timothy Andrew's avatar Timothy Andrew Committed by Alfredo Sumaran

Add migration downtime flags/notices.

parent 4911f5af
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
class AddColumnUserIdToProtectedBranchesAccessLevels < ActiveRecord::Migration class AddColumnUserIdToProtectedBranchesAccessLevels < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
DOWNTIME = true
DOWNTIME_REASON = "This migrations adds two indexes, and so requires downtime."
# When using the methods "add_concurrent_index" or "add_column_with_default" # When using the methods "add_concurrent_index" or "add_column_with_default"
# you must disable the use of transactions as these methods can not run in an # you must disable the use of transactions as these methods can not run in an
# existing transaction. When using "add_concurrent_index" make sure that this # existing transaction. When using "add_concurrent_index" make sure that this
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
class AllowNullsForProtectedBranchAccessLevels < ActiveRecord::Migration class AllowNullsForProtectedBranchAccessLevels < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
DOWNTIME = false
# When using the methods "add_concurrent_index" or "add_column_with_default" # When using the methods "add_concurrent_index" or "add_column_with_default"
# you must disable the use of transactions as these methods can not run in an # you must disable the use of transactions as these methods can not run in an
# existing transaction. When using "add_concurrent_index" make sure that this # existing transaction. When using "add_concurrent_index" make sure that this
......
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