summaryrefslogtreecommitdiff
path: root/db/migrate/20220114131950_add_status_only_index_to_packages_package_files.rb
blob: 948edea1138750ebcbe4282c5992597bfe91402a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddStatusOnlyIndexToPackagesPackageFiles < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  INDEX_NAME = 'index_packages_package_files_on_status'

  def up
    add_concurrent_index :packages_package_files, :status, name: INDEX_NAME
  end

  def down
    remove_concurrent_index_by_name :packages_package_files, name: INDEX_NAME
  end
end