diff --git a/internal/advisory/db/joined.sql b/internal/advisory/db/joined.sql index 9fdff35a704f3dca5da8c0e50e51c2573dc9c91e..5df4d0ae7720df14256d93508eccda7720835d16 100644 --- a/internal/advisory/db/joined.sql +++ b/internal/advisory/db/joined.sql @@ -107,7 +107,10 @@ CREATE TABLE IF NOT EXISTS advisories ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this dependency will - -- flagged as + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( @@ -749,8 +752,9 @@ CREATE TABLE IF NOT EXISTS aws_elasticache_datastore_engines ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, @@ -1017,8 +1021,10 @@ CREATE TABLE IF NOT EXISTS policy_violations ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this Policy Violation will - -- flagged as. NOTE that this field is an exact match for the - -- `advisories.advisory_type` column + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( diff --git a/internal/advisory/db/schema.sql b/internal/advisory/db/schema.sql index ef737d00eadad93c1b5eac9d2525f643712434f1..4c81865233b0adf453bf9f2ee85c722990d24cb9 100644 --- a/internal/advisory/db/schema.sql +++ b/internal/advisory/db/schema.sql @@ -102,7 +102,10 @@ CREATE TABLE IF NOT EXISTS advisories ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this dependency will - -- flagged as + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( diff --git a/internal/datasources/renovate/db/joined.sql b/internal/datasources/renovate/db/joined.sql index 7d3dca80ad39d00b64c7a539df5db7b882e8911d..445d4ec63ef0af962f62ab11a75133a1217e7810 100644 --- a/internal/datasources/renovate/db/joined.sql +++ b/internal/datasources/renovate/db/joined.sql @@ -218,8 +218,9 @@ CREATE TABLE IF NOT EXISTS renovate_updates ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, diff --git a/internal/datasources/sbom/db/joined.sql b/internal/datasources/sbom/db/joined.sql index d7a73bcee4b61b61f8298828c88fe86a18b888d7..82542d6f53aaa36874ee96fc7c1f17370d194890 100644 --- a/internal/datasources/sbom/db/joined.sql +++ b/internal/datasources/sbom/db/joined.sql @@ -124,8 +124,9 @@ CREATE TABLE IF NOT EXISTS sensitive_packages ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, diff --git a/internal/graph/db/joined.sql b/internal/graph/db/joined.sql index 23665d944104b0880da6fd34ab2029307c7ef41a..1b78ef9deee0e78ba56fe02a2221c9d23e788045 100644 --- a/internal/graph/db/joined.sql +++ b/internal/graph/db/joined.sql @@ -281,8 +281,9 @@ CREATE TABLE IF NOT EXISTS sboms ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, @@ -549,8 +550,10 @@ CREATE TABLE IF NOT EXISTS policy_violations ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this Policy Violation will - -- flagged as. NOTE that this field is an exact match for the - -- `advisories.advisory_type` column + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( @@ -687,7 +690,10 @@ CREATE TABLE IF NOT EXISTS advisories ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this dependency will - -- flagged as + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( diff --git a/internal/licenses/db/joined.sql b/internal/licenses/db/joined.sql index b840dc27e48ecdbdeab5604d7a15f5526b8b31a6..65f0713230a9e648af7644bf5dc57aa45119bdc1 100644 --- a/internal/licenses/db/joined.sql +++ b/internal/licenses/db/joined.sql @@ -355,8 +355,9 @@ CREATE TABLE IF NOT EXISTS depsdev_licenses ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, diff --git a/internal/ownership/db/schema.sql b/internal/ownership/db/schema.sql index 9639337ab67c79c60849842b653ede14ae29c51a..282f1bd66e732c5c930419629de6f011838fae94 100644 --- a/internal/ownership/db/schema.sql +++ b/internal/ownership/db/schema.sql @@ -6,8 +6,9 @@ -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, diff --git a/internal/policies/db/joined.sql b/internal/policies/db/joined.sql index 69b3276d9578a30550fd0d58a00a3e98568add77..c5abe3a4e3d1dd31bbed160e10b20c9a57872fb6 100644 --- a/internal/policies/db/joined.sql +++ b/internal/policies/db/joined.sql @@ -150,8 +150,10 @@ CREATE TABLE IF NOT EXISTS policy_violations ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this Policy Violation will - -- flagged as. NOTE that this field is an exact match for the - -- `advisories.advisory_type` column + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( @@ -462,8 +464,9 @@ CREATE TABLE IF NOT EXISTS sboms ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`, diff --git a/internal/policies/db/schema.sql b/internal/policies/db/schema.sql index 69badcf2e1127d175688d4365829e87d79468ee2..c5d91d31d2dc0a4b0c3cd950b75df10f380f3cde 100644 --- a/internal/policies/db/schema.sql +++ b/internal/policies/db/schema.sql @@ -145,8 +145,10 @@ CREATE TABLE IF NOT EXISTS policy_violations ( ), -- advisory_type defines the type of Advisory -- (https://dmd.tanna.dev/concepts/advisory/) that this Policy Violation will - -- flagged as. NOTE that this field is an exact match for the - -- `advisories.advisory_type` column + -- flagged as. + -- + -- NOTE that this field is an exact match for the `advisories.advisory_type` + -- column advisory_type TEXT NOT NULL CHECK ( advisory_type IN ( diff --git a/internal/reports/db/joined.sql b/internal/reports/db/joined.sql index 18ccf434802c22964086596ffa0314d29f0f79d0..0181275a4930f19ee2f67f4aa72633f99b9b9c12 100644 --- a/internal/reports/db/joined.sql +++ b/internal/reports/db/joined.sql @@ -281,8 +281,9 @@ CREATE TABLE IF NOT EXISTS sboms ( -- More detail can be found in https://dmd.tanna.dev/cookbooks/ownership/ -- around how to source + query this data. -- --- Each platform/organisation/repo combination should have one owner. NOTE that --- in the future, multiple owners may be allowed +-- Each platform/organisation/repo combination should have one owner. +-- +-- NOTE that in the future, multiple owners may be allowed -- https://gitlab.com/tanna.dev/dependency-management-data/-/issues/112 CREATE TABLE IF NOT EXISTS owners ( -- what platform hosts the source code that this repo is for? i.e. `github`,