summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 12:09:34 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 12:09:34 +0000
commit903ccf7c93eb9490c76857bffe744249cc07de09 (patch)
tree603a3162e91999160e4efc74f351f9405f422d61 /db
parent41cb558299b483b44b45351730ee4c0e9fe4ca2c (diff)
downloadgitlab-ce-903ccf7c93eb9490c76857bffe744249cc07de09.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200402135250_add_delete_status_to_container_repository.rb13
-rw-r--r--db/structure.sql4
2 files changed, 16 insertions, 1 deletions
diff --git a/db/migrate/20200402135250_add_delete_status_to_container_repository.rb b/db/migrate/20200402135250_add_delete_status_to_container_repository.rb
new file mode 100644
index 00000000000..a0dbb307bfc
--- /dev/null
+++ b/db/migrate/20200402135250_add_delete_status_to_container_repository.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddDeleteStatusToContainerRepository < ActiveRecord::Migration[6.0]
+ DOWNTIME = false
+
+ def up
+ add_column(:container_repositories, :status, :integer, limit: 2)
+ end
+
+ def down
+ remove_column(:container_repositories, :status)
+ end
+end
diff --git a/db/structure.sql b/db/structure.sql
index ef3319df364..2697dbbe2b1 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -1850,7 +1850,8 @@ CREATE TABLE public.container_repositories (
project_id integer NOT NULL,
name character varying NOT NULL,
created_at timestamp without time zone NOT NULL,
- updated_at timestamp without time zone NOT NULL
+ updated_at timestamp without time zone NOT NULL,
+ status smallint
);
CREATE SEQUENCE public.container_repositories_id_seq
@@ -12935,6 +12936,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200330123739
20200330132913
20200331220930
+20200402135250
20200403184110
20200403185127
20200403185422