fix(migrations): include ip_address in add_card_workflow_type table recreate

The column was missing from the new table definition, causing the
INSERT...SELECT to fail on any DB that already had ip_address (e.g.
auto-created by the updated server.js).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 16:12:24 -06:00
parent b0adfa1bda
commit 518cb0a849

View File

@@ -24,6 +24,7 @@ db.serialize(() => {
finding_id TEXT NOT NULL, finding_id TEXT NOT NULL,
finding_title TEXT, finding_title TEXT,
cves_json TEXT, cves_json TEXT,
ip_address TEXT,
vendor TEXT NOT NULL, vendor TEXT NOT NULL,
workflow_type TEXT NOT NULL CHECK(workflow_type IN ('FP', 'Archer', 'CARD')), workflow_type TEXT NOT NULL CHECK(workflow_type IN ('FP', 'Archer', 'CARD')),
status TEXT NOT NULL DEFAULT 'pending' CHECK(status IN ('pending', 'complete')), status TEXT NOT NULL DEFAULT 'pending' CHECK(status IN ('pending', 'complete')),