summaryrefslogtreecommitdiff
path: root/db/post_migrate/20230126133531_remove_not_null_constraints_for_tables_with_schema_differences_v3.rb
blob: 04ed7a7ee1238e0f3e74a4edaa5e6de99ac9909f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class RemoveNotNullConstraintsForTablesWithSchemaDifferencesV3 < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  def up
    return unless Gitlab.com?

    change_column_null :integrations, :updated_at, true
    change_column_null :integrations, :created_at, true

    change_column_null :project_settings, :show_default_award_emojis, true
  end

  def down
    # no-op
  end
end