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

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

class AddRootNamespaceIdToCiFinishedBuilds < ClickHouse::Migration
  def up
    execute <<~SQL
      ALTER TABLE ci_finished_builds
        ADD COLUMN IF NOT EXISTS root_namespace_id UInt64 DEFAULT 0
    SQL
  end

  def down
    execute <<~SQL
      ALTER TABLE ci_finished_builds
        DROP COLUMN IF EXISTS root_namespace_id
    SQL
  end
end