Merge pull request #16300 from zyyw/vulnerability-bigint

fix: vulnerability_record & report_vulnerability_record table "integer out of range" error
This commit is contained in:
Shengwen YU 2022-02-09 11:34:09 +08:00 committed by GitHub
commit 5833ff4731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,3 +25,8 @@ CREATE TABLE IF NOT EXISTS artifact_accessory (
CONSTRAINT unique_artifact_accessory UNIQUE (artifact_id, subject_artifact_id)
);
/* Change vulnerability_record.id and report_vulnerability_record.id to BIGINT */
ALTER TABLE vulnerability_record ALTER COLUMN id TYPE BIGINT;
ALTER SEQUENCE vulnerability_record_id_seq AS BIGINT;
ALTER TABLE report_vulnerability_record ALTER COLUMN id TYPE BIGINT;
ALTER SEQUENCE report_vulnerability_record_id_seq AS BIGINT;