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

20221011113928_redo_remove_and_add_ci_job_variables_raw_with_new_default.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a377b78803e89cafa76e030c5e424d45641ff8e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class RedoRemoveAndAddCiJobVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
  enable_lock_retries!

  # We are removing and adding the same column with the same parameters to refresh the table
  # because we have some wrong `ci_job_variables.raw` data (`TRUE`) in the database.
  def change
    remove_column :ci_job_variables, :raw, :boolean, null: false, default: false
    add_column :ci_job_variables, :raw, :boolean, null: false, default: false
  end
end