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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-19 12:08:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-19 12:08:35 +0300
commit12866a3931a2834d911728364d6604c4dd97c004 (patch)
tree2fc3a99aff81c8866d5fd3d63476863fee129d33 /db
parent2ccc9aaf48ad5badb839991a00c98cb7dee28ec1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200604001128_add_secrets_to_ci_builds_metadata.rb19
-rw-r--r--db/structure.sql4
2 files changed, 22 insertions, 1 deletions
diff --git a/db/migrate/20200604001128_add_secrets_to_ci_builds_metadata.rb b/db/migrate/20200604001128_add_secrets_to_ci_builds_metadata.rb
new file mode 100644
index 00000000000..9a67993cf5c
--- /dev/null
+++ b/db/migrate/20200604001128_add_secrets_to_ci_builds_metadata.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+class AddSecretsToCiBuildsMetadata < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def up
+ with_lock_retries do
+ add_column :ci_builds_metadata, :secrets, :jsonb, default: {}, null: false
+ end
+ end
+
+ def down
+ with_lock_retries do
+ remove_column :ci_builds_metadata, :secrets
+ end
+ end
+end
diff --git a/db/structure.sql b/db/structure.sql
index 42fcfe0ef9a..1be04406542 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -1075,7 +1075,8 @@ CREATE TABLE public.ci_builds_metadata (
config_variables jsonb,
has_exposed_artifacts boolean,
environment_auto_stop_in character varying(255),
- expanded_environment_name character varying(255)
+ expanded_environment_name character varying(255),
+ secrets jsonb DEFAULT '{}'::jsonb NOT NULL
);
CREATE SEQUENCE public.ci_builds_metadata_id_seq
@@ -14047,6 +14048,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200602143020
20200603073101
20200603180338
+20200604001128
20200604143628
20200604145731
20200604174544