summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-03 12:09:52 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-03 12:09:52 +0000
commit546ddc3f6ac96fdf09934390a938bb391d07dc94 (patch)
treed0c92fca27ee76b5a20b7bfb56bda6f057424127 /db
parent04baa85554ff13bdd4d6f4e6bb24119d17608fee (diff)
downloadgitlab-ce-546ddc3f6ac96fdf09934390a938bb391d07dc94.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200330121000_add_confidential_attribute_to_epics.rb17
-rw-r--r--db/structure.sql2
2 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20200330121000_add_confidential_attribute_to_epics.rb b/db/migrate/20200330121000_add_confidential_attribute_to_epics.rb
new file mode 100644
index 00000000000..01728436b93
--- /dev/null
+++ b/db/migrate/20200330121000_add_confidential_attribute_to_epics.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddConfidentialAttributeToEpics < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default(:epics, :confidential, :boolean, default: false)
+ end
+
+ def down
+ remove_column(:epics, :confidential)
+ end
+end
diff --git a/db/structure.sql b/db/structure.sql
index d9062b0f3e1..94d98c68f48 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -2271,6 +2271,7 @@ CREATE TABLE public.epics (
state_id smallint DEFAULT 1 NOT NULL,
start_date_sourcing_epic_id integer,
due_date_sourcing_epic_id integer,
+ confidential boolean DEFAULT false NOT NULL,
external_key character varying(255)
);
@@ -12925,6 +12926,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200326144443
20200326145443
20200330074719
+20200330121000
20200330132913
20200331220930
\.