diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-23 18:27:09 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-23 18:27:09 +0000 |
commit | bcc70301531b6c3118120173389f2aaa7452bf11 (patch) | |
tree | 161f1ee56e15ec9e59f48c5e1a9cb86b62469a49 /db/migrate | |
parent | d47fc5085a706ab37d038636c9d5934da69853f0 (diff) | |
download | gitlab-ce-bcc70301531b6c3118120173389f2aaa7452bf11.tar.gz |
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200715202659_add_index_on_package_files_file_store.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200715202659_add_index_on_package_files_file_store.rb b/db/migrate/20200715202659_add_index_on_package_files_file_store.rb new file mode 100644 index 00000000000..92e8364d22c --- /dev/null +++ b/db/migrate/20200715202659_add_index_on_package_files_file_store.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddIndexOnPackageFilesFileStore < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index :packages_package_files, :file_store + end + + def down + remove_concurrent_index :packages_package_files, :file_store + end +end |