Skip to content

Commit

Permalink
fixup! feat(csaf): add csaf_file table
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Jan 10, 2024
1 parent eea5b94 commit 34ba201
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion database/vmaas_db_postgresql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS db_version (
)TABLESPACE pg_default;

-- Increment this when editing this file
INSERT INTO db_version (name, version) VALUES ('schema_version', 16);
INSERT INTO db_version (name, version) VALUES ('schema_version', 17);

-- -----------------------------------------------------
-- evr type
Expand Down Expand Up @@ -1273,6 +1273,17 @@ CREATE TABLE IF NOT EXISTS oval_definition_cpe (
)TABLESPACE pg_default;


-- -----------------------------------------------------
-- Table vmaas.csaf_file
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS csaf_file (
id SERIAL,
name TEXT UNIQUE NOT NULL, CHECK (NOT empty(name)),
updated TIMESTAMP WITH TIME ZONE,
PRIMARY KEY (id)
)TABLESPACE pg_default;


-- -----------------------------------------------------
-- vmaas users permission setup:
-- vmaas_writer - has rights to INSERT/UPDATE/DELETE; used by reposcan
Expand Down

0 comments on commit 34ba201

Please sign in to comment.