Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230626070723_drop_unused_sent_notification_columns.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82a125c1ff53ea68e03cc2300ad1b71dabb29502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class DropUnusedSentNotificationColumns < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def up
    remove_column :sent_notifications, :line_code
    remove_column :sent_notifications, :note_type
    remove_column :sent_notifications, :position
  end

  def down
    add_column :sent_notifications, :line_code, :string
    add_column :sent_notifications, :note_type, :string
    add_column :sent_notifications, :position, :text
  end
end