summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 00:09:57 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 00:09:57 +0000
commit9398d718d92a40a0a917040645a55dea51467a91 (patch)
treece1242c69221f1e6abd701439631cf6e6d1b948d /db
parent602ea42669779ec431bcaeb41fd95e079b1a7021 (diff)
downloadgitlab-ce-9398d718d92a40a0a917040645a55dea51467a91.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200406192059_add_write_registry_to_deploy_tokens.rb17
-rw-r--r--db/structure.sql4
2 files changed, 20 insertions, 1 deletions
diff --git a/db/migrate/20200406192059_add_write_registry_to_deploy_tokens.rb b/db/migrate/20200406192059_add_write_registry_to_deploy_tokens.rb
new file mode 100644
index 00000000000..22fdb030edc
--- /dev/null
+++ b/db/migrate/20200406192059_add_write_registry_to_deploy_tokens.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddWriteRegistryToDeployTokens < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default(:deploy_tokens, :write_registry, :boolean, default: false, allow_null: false)
+ end
+
+ def down
+ remove_column(:deploy_tokens, :write_registry)
+ end
+end
diff --git a/db/structure.sql b/db/structure.sql
index 90585a157cf..622234396a2 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -1997,7 +1997,8 @@ CREATE TABLE public.deploy_tokens (
token character varying,
username character varying,
token_encrypted character varying(255),
- deploy_token_type smallint DEFAULT 2 NOT NULL
+ deploy_token_type smallint DEFAULT 2 NOT NULL,
+ write_registry boolean DEFAULT false NOT NULL
);
CREATE SEQUENCE public.deploy_tokens_id_seq
@@ -13087,6 +13088,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200403185127
20200403185422
20200406135648
+20200406192059
20200407094005
20200407094923
20200408110856