← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ines-almeida/launchpad:add-vulnerbaility-job-table into launchpad:db-devel

 

Ines Almeida has proposed merging ~ines-almeida/launchpad:add-vulnerbaility-job-table into launchpad:db-devel.

Commit message:
db: Add VulnerabilityJob table

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/491055
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:add-vulnerbaility-job-table into launchpad:db-devel.
diff --git a/database/schema/patch-2211-44-0.sql b/database/schema/patch-2211-44-0.sql
new file mode 100644
index 0000000..ed691d8
--- /dev/null
+++ b/database/schema/patch-2211-44-0.sql
@@ -0,0 +1,15 @@
+-- Copyright 2025 Canonical Ltd.  This software is licensed under the
+-- GNU Affero General Public License version 3 (see the file LICENSE).
+
+SET client_min_messages=ERROR;
+
+CREATE TABLE VulnerabilityJob (
+    id serial PRIMARY KEY,
+    job integer NOT NULL CONSTRAINT vulnerabilityjob__job__fk REFERENCES job,
+    handler integer NOT NULL,
+    job_type integer NOT NULL,
+    json_data text
+);
+
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2211, 44, 0);