diff options
Diffstat (limited to 'db/migrate/20210616154808_remove_ci_build_protected_index.rb')
-rw-r--r-- | db/migrate/20210616154808_remove_ci_build_protected_index.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20210616154808_remove_ci_build_protected_index.rb b/db/migrate/20210616154808_remove_ci_build_protected_index.rb new file mode 100644 index 00000000000..25a8d159c1e --- /dev/null +++ b/db/migrate/20210616154808_remove_ci_build_protected_index.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class RemoveCiBuildProtectedIndex < ActiveRecord::Migration[6.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + INDEX_NAME = 'index_ci_builds_on_protected' + + disable_ddl_transaction! + + def up + remove_concurrent_index :ci_builds, :protected, name: INDEX_NAME + end + + def down + add_concurrent_index :ci_builds, :protected, name: INDEX_NAME + end +end |