Commit a97858b0 authored by Simon Tomlinson's avatar Simon Tomlinson

Merge branch 'ab/index-on-status' into 'master'

Create status index for batched migrations

See merge request gitlab-org/gitlab!84470
parents dfc03562 9653cb5a
# frozen_string_literal: true
class AddIndexOnStatusForBatchedBackgroundMigrations < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
add_concurrent_index :batched_background_migrations, :status
end
def down
remove_concurrent_index_by_name :batched_background_migrations, :index_batched_background_migrations_on_status
end
end
687ba844d775918956f16dee16548f0440506e66e91afd5f52410066ffd5e364
\ No newline at end of file
......@@ -26806,6 +26806,8 @@ CREATE INDEX index_badges_on_group_id ON badges USING btree (group_id);
CREATE INDEX index_badges_on_project_id ON badges USING btree (project_id);
CREATE INDEX index_batched_background_migrations_on_status ON batched_background_migrations USING btree (status);
CREATE UNIQUE INDEX index_batched_background_migrations_on_unique_configuration ON batched_background_migrations USING btree (job_class_name, table_name, column_name, job_arguments);
CREATE INDEX index_batched_jobs_by_batched_migration_id_and_id ON batched_background_migration_jobs USING btree (batched_background_migration_id, id);
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