summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20200804222543_add_resolved_on_default_branch_into_vulnerabilities_table.rb11
-rw-r--r--db/schema_migrations/202008042225431
-rw-r--r--db/structure.sql3
3 files changed, 14 insertions, 1 deletions
diff --git a/db/migrate/20200804222543_add_resolved_on_default_branch_into_vulnerabilities_table.rb b/db/migrate/20200804222543_add_resolved_on_default_branch_into_vulnerabilities_table.rb
new file mode 100644
index 00000000000..afb97871575
--- /dev/null
+++ b/db/migrate/20200804222543_add_resolved_on_default_branch_into_vulnerabilities_table.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class AddResolvedOnDefaultBranchIntoVulnerabilitiesTable < ActiveRecord::Migration[6.0]
+ DOWNTIME = false
+
+ def change
+ change_table :vulnerabilities do |t|
+ t.boolean :resolved_on_default_branch, default: false, null: false
+ end
+ end
+end
diff --git a/db/schema_migrations/20200804222543 b/db/schema_migrations/20200804222543
new file mode 100644
index 00000000000..d8c99e51bff
--- /dev/null
+++ b/db/schema_migrations/20200804222543
@@ -0,0 +1 @@
+21c35b7712ed1933537115a74571904c74b3d61b424b9f954c3ad36e0d1bf139 \ No newline at end of file
diff --git a/db/structure.sql b/db/structure.sql
index a356bee0c1a..201c23a3094 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -16191,7 +16191,8 @@ CREATE TABLE public.vulnerabilities (
confirmed_by_id bigint,
confirmed_at timestamp with time zone,
dismissed_at timestamp with time zone,
- dismissed_by_id bigint
+ dismissed_by_id bigint,
+ resolved_on_default_branch boolean DEFAULT false NOT NULL
);
CREATE SEQUENCE public.vulnerabilities_id_seq