Skip to content

database error - metric_id foreign key not found #4434

Closed
@steven-hh-ding

Description

@steven-hh-ding

CREATE TABLE IF NOT EXISTS cve_metrics (
cve_number TEXT,
metric_id INTEGER,
metric_score REAL,
metric_field TEXT,
FOREIGN KEY(cve_number) REFERENCES cve_severity(cve_number),
FOREIGN KEY(metric_id) REFERENCES metrics(metric_id)
)
""",
"metrics": """
CREATE TABLE IF NOT EXISTS metrics (
metrics_id INTEGER,
metrics_name TEXT,
PRIMARY KEY(metrics_id)
)

Hi, just wonder shouldn't line 115 be metric_id rather than metrics_id? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions