diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-30 03:08:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-30 03:08:20 +0300 |
commit | b0feb2f9d0d0d186a3926b3a928e9740ace0dc94 (patch) | |
tree | 820074fd93e0600b496ebe72353268b5f261a821 /db/post_migrate | |
parent | face8345a20b100d3a96dd8450a2aa3bceaecad2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20231225133628_remove_due_date_column_from_vulnerabilities.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20231225133628_remove_due_date_column_from_vulnerabilities.rb b/db/post_migrate/20231225133628_remove_due_date_column_from_vulnerabilities.rb new file mode 100644 index 00000000000..2f77a5a82f4 --- /dev/null +++ b/db/post_migrate/20231225133628_remove_due_date_column_from_vulnerabilities.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class RemoveDueDateColumnFromVulnerabilities < Gitlab::Database::Migration[2.2] + milestone '16.8' + + enable_lock_retries! + + def up + remove_column :vulnerabilities, :due_date + end + + def down + add_column :vulnerabilities, :due_date, :date + end +end |