diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-22 15:14:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-22 15:14:34 +0300 |
commit | 26fa51816ab94df9c2f3db8c93da4d57f7bd6fc4 (patch) | |
tree | 3b29671cb4bc910500d8c7db4e2694b4c012387e /db/migrate | |
parent | 6b0293c14dce817f72310127dd38562313321b1b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20231212154022_add_release_published_at_to_release.rb | 10 | ||||
-rw-r--r-- | db/migrate/20231220094609_add_release_published_at_index_to_release.rb | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/db/migrate/20231212154022_add_release_published_at_to_release.rb b/db/migrate/20231212154022_add_release_published_at_to_release.rb new file mode 100644 index 00000000000..8ecb51a8cf1 --- /dev/null +++ b/db/migrate/20231212154022_add_release_published_at_to_release.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +class AddReleasePublishedAtToRelease < Gitlab::Database::Migration[2.2] + milestone '16.8' + enable_lock_retries! + + def change + add_column :releases, :release_published_at, :datetime_with_timezone + end +end diff --git a/db/migrate/20231220094609_add_release_published_at_index_to_release.rb b/db/migrate/20231220094609_add_release_published_at_index_to_release.rb new file mode 100644 index 00000000000..bc5891ad198 --- /dev/null +++ b/db/migrate/20231220094609_add_release_published_at_index_to_release.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class AddReleasePublishedAtIndexToRelease < Gitlab::Database::Migration[2.2] + milestone '16.8' + disable_ddl_transaction! + + def up + add_concurrent_index :releases, :release_published_at, name: 'releases_published_at_index' + end + + def down + remove_concurrent_index :releases, :release_published_at, name: 'releases_published_at_index' + end +end |