Skip to content
代码片段 群组 项目
提交 0bb49b14 编辑于 作者: Furkan Ayhan's avatar Furkan Ayhan 提交者: Adam Hegyi
浏览文件

Remove and add raw of ci-variables tables with new default

We added raw attributes to all ci-variables tables with default true.
However, it has to be false because currently when you add a
project/group variable or a YAML variable,
their default raw value is false.

Changelog: other
上级 1dc5148f
No related branches found
No related tags found
无相关合并请求
显示
73 个添加7 个删除
# frozen_string_literal: true
class RemoveAndAddCiPipelineVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_pipeline_variables, :raw, :boolean, null: false, default: true
add_column :ci_pipeline_variables, :raw, :boolean, null: false, default: false
end
end
# frozen_string_literal: true
class RemoveAndAddCiGroupVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_group_variables, :raw, :boolean, null: false, default: true
add_column :ci_group_variables, :raw, :boolean, null: false, default: false
end
end
# frozen_string_literal: true
class RemoveAndAddCiInstanceVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_instance_variables, :raw, :boolean, null: false, default: true
add_column :ci_instance_variables, :raw, :boolean, null: false, default: false
end
end
# frozen_string_literal: true
class RemoveAndAddCiJobVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_job_variables, :raw, :boolean, null: false, default: true
add_column :ci_job_variables, :raw, :boolean, null: false, default: false
end
end
# frozen_string_literal: true
class RemoveAndAddCiPipelineScheduleVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_pipeline_schedule_variables, :raw, :boolean, null: false, default: true
add_column :ci_pipeline_schedule_variables, :raw, :boolean, null: false, default: false
end
end
# frozen_string_literal: true
class RemoveAndAddCiVariablesRawWithNewDefault < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
remove_column :ci_variables, :raw, :boolean, null: false, default: true
add_column :ci_variables, :raw, :boolean, null: false, default: false
end
end
f06d7555d3541abbb9fd671df3718645203aef111674b91ad386dac434c4ede2
\ No newline at end of file
a515d3e34f4b467c5e6fbd9b55135a676277ff6388eb1e3fc14df4b11d8eb3c0
\ No newline at end of file
0fdbb888bdbd4f68619466a8f4384e44062b0cf854790c648a6a060ab1e71806
\ No newline at end of file
2041cb81c534be0cc45b1cc77fa7fd2e31615129e1ba60a146cca88d58b77605
\ No newline at end of file
cbef1d036abb0035d710cf912e554e32fa88df3abaed17cb938e0b18032c7448
\ No newline at end of file
fbc4c12aedd9d0f183e9444f2cb42c11a2b894c11684e80a5dbe847c7bccb21f
\ No newline at end of file
......@@ -12772,7 +12772,7 @@ CREATE TABLE ci_group_variables (
masked boolean DEFAULT false NOT NULL,
variable_type smallint DEFAULT 1 NOT NULL,
environment_scope text DEFAULT '*'::text NOT NULL,
raw boolean DEFAULT true NOT NULL,
raw boolean DEFAULT false NOT NULL,
CONSTRAINT check_dfe009485a CHECK ((char_length(environment_scope) <= 255))
);
 
......@@ -12793,7 +12793,7 @@ CREATE TABLE ci_instance_variables (
key text NOT NULL,
encrypted_value text,
encrypted_value_iv text,
raw boolean DEFAULT true NOT NULL,
raw boolean DEFAULT false NOT NULL,
CONSTRAINT check_07a45a5bcb CHECK ((char_length(encrypted_value_iv) <= 255)),
CONSTRAINT check_5aede12208 CHECK ((char_length(key) <= 255)),
CONSTRAINT check_956afd70f1 CHECK ((char_length(encrypted_value) <= 13579))
......@@ -12875,7 +12875,7 @@ CREATE TABLE ci_job_variables (
job_id bigint NOT NULL,
variable_type smallint DEFAULT 1 NOT NULL,
source smallint DEFAULT 0 NOT NULL,
raw boolean DEFAULT true NOT NULL
raw boolean DEFAULT false NOT NULL
);
 
CREATE SEQUENCE ci_job_variables_id_seq
......@@ -13057,7 +13057,7 @@ CREATE TABLE ci_pipeline_schedule_variables (
created_at timestamp with time zone,
updated_at timestamp with time zone,
variable_type smallint DEFAULT 1 NOT NULL,
raw boolean DEFAULT true NOT NULL
raw boolean DEFAULT false NOT NULL
);
 
CREATE SEQUENCE ci_pipeline_schedule_variables_id_seq
......@@ -13101,8 +13101,8 @@ CREATE TABLE ci_pipeline_variables (
encrypted_value_iv character varying,
pipeline_id integer NOT NULL,
variable_type smallint DEFAULT 1 NOT NULL,
raw boolean DEFAULT true NOT NULL,
partition_id bigint DEFAULT 100 NOT NULL
partition_id bigint DEFAULT 100 NOT NULL,
raw boolean DEFAULT false NOT NULL
);
 
CREATE SEQUENCE ci_pipeline_variables_id_seq
......@@ -13564,7 +13564,7 @@ CREATE TABLE ci_variables (
environment_scope character varying DEFAULT '*'::character varying NOT NULL,
masked boolean DEFAULT false NOT NULL,
variable_type smallint DEFAULT 1 NOT NULL,
raw boolean DEFAULT true NOT NULL
raw boolean DEFAULT false NOT NULL
);
 
CREATE SEQUENCE ci_variables_id_seq
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册