diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-02 03:12:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-02 03:12:29 +0300 |
commit | 88ce9b624561a2a5836c623bdd07a81ffc611da7 (patch) | |
tree | 01288a1f7b54888b677548173697e8c20a344cb0 /db | |
parent | d170c7eeef81debb74afa518c256358ccb7e231c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20230130070623_add_index_on_packages_package_file_file_name.rb | 14 | ||||
-rw-r--r-- | db/schema_migrations/20230130070623 | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20230130070623_add_index_on_packages_package_file_file_name.rb b/db/post_migrate/20230130070623_add_index_on_packages_package_file_file_name.rb new file mode 100644 index 00000000000..d7b495df272 --- /dev/null +++ b/db/post_migrate/20230130070623_add_index_on_packages_package_file_file_name.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class AddIndexOnPackagesPackageFileFileName < Gitlab::Database::Migration[2.1] + INDEX_NAME = 'index_packages_package_files_on_file_name' + + def up + prepare_async_index :packages_package_files, :file_name, name: INDEX_NAME, using: :gin, + opclass: { description: :gin_trgm_ops } + end + + def down + unprepare_async_index :packages_package_files, :file_name, name: INDEX_NAME + end +end diff --git a/db/schema_migrations/20230130070623 b/db/schema_migrations/20230130070623 new file mode 100644 index 00000000000..136a4612f6a --- /dev/null +++ b/db/schema_migrations/20230130070623 @@ -0,0 +1 @@ +3d098df1006f9dba019a1637cd921ff9ffe087a967841fd2d27f7bc4db7e0e42
\ No newline at end of file |