-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store affected version ranges by version instead of release ID (#791)
This allows for greater flexiblity when it comes to declared versions that do not appear in the affected package repository
- Loading branch information
Showing
4 changed files
with
12 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
CREATE TABLE IF NOT EXISTS affected_version_ranges ( | ||
affected_version_id uuid PRIMARY KEY | ||
, affected_package_id uuid REFERENCES affected_packages NOT NULL | ||
, introduced_version uuid REFERENCES releases (release_id) NOT NULL | ||
, fixed_version uuid REFERENCES releases (release_id) | ||
, introduced_version int[] NOT NULL | ||
, fixed_version int[] | ||
); | ||
|
||
CREATE INDEX affected_version_ranges_affected_package_id_fkey | ||
ON affected_version_ranges (affected_package_id); | ||
|
||
CREATE INDEX affected_version_ranges_introduced_version_fkey | ||
CREATE INDEX affected_version_ranges_introduced_version | ||
ON affected_version_ranges (introduced_version); | ||
|
||
CREATE INDEX affected_version_ranges_fixed_version_fkey | ||
CREATE INDEX affected_version_ranges_fixed_version | ||
ON affected_version_ranges (fixed_version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE INDEX ON releases (version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters