diff options
Diffstat (limited to 'db/migrate/20200109030418_add_sorting_index_to_packages.rb')
-rw-r--r-- | db/migrate/20200109030418_add_sorting_index_to_packages.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20200109030418_add_sorting_index_to_packages.rb b/db/migrate/20200109030418_add_sorting_index_to_packages.rb deleted file mode 100644 index 989f3de3c04..00000000000 --- a/db/migrate/20200109030418_add_sorting_index_to_packages.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -class AddSortingIndexToPackages < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - add_concurrent_index :packages_packages, [:project_id, :created_at] - add_concurrent_index :packages_packages, [:project_id, :version] - add_concurrent_index :packages_packages, [:project_id, :package_type] - end - - def down - remove_concurrent_index :packages_packages, [:project_id, :created_at] - remove_concurrent_index :packages_packages, [:project_id, :version] - remove_concurrent_index :packages_packages, [:project_id, :package_type] - end -end |