1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Legacy cache rows for scripts/identity-migrate-e2e.sh.
-- The script replaces __DID__ with the temporary account DID, then applies this
-- file with sqlite3 after identity-migrate has created the schema.
INSERT OR REPLACE INTO cves (id, last_modified, data, updated_at) VALUES (
'CVE-2024-0001',
'2026-01-01T00:00:00.000Z',
'{"id":"CVE-2024-0001","vulnStatus":"Analyzed","configurations":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"}]}]}],"affected":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","version":"8.0","cpes":["cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","version":"9.4","cpes":["cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"]},{"vendor":"redhat","product":"rhel_els","version":"6"}]}',
'2026-01-01T00:00:00.000Z'
);
INSERT OR REPLACE INTO software
(repo_did, slug, part, vendor, product, project_uri, project_cid, software_uri, software_cid, status, updated_at)
VALUES
('__DID__', 'red-hat-red-hat-enterprise-linux-8', 'o', 'Red Hat', 'Red Hat Enterprise Linux 8', '', '', '', '', 'done', '2026-01-01T00:00:00.000Z'),
('__DID__', 'redhat-enterprise-linux', 'o', 'redhat', 'enterprise_linux', '', '', '', '', 'done', '2026-01-01T00:00:00.000Z'),
('__DID__', 'redhat-rhel-els', 'o', 'redhat', 'rhel_els', '', '', '', '', 'done', '2026-01-01T00:00:00.000Z');
-- Legacy caches stored the full AT-URI in software_purls.software_slug.
INSERT OR REPLACE INTO software_purls
(repo_did, purl, software_slug, purl_uri, purl_cid, status, updated_at)
VALUES
('__DID__', 'pkg:rpm/redhat/enterprise-linux@8',
'at://__DID__/com.nahdig.software/red-hat-red-hat-enterprise-linux-8',
'', '', 'done', '2026-01-01T00:00:00.000Z');