We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48dfc8 commit c590095Copy full SHA for c590095
internal/database/mariadb.go
@@ -79,8 +79,8 @@ CREATE TABLE IF NOT EXISTS relations (
79
source_id INT NOT NULL,
80
81
CONSTRAINT pk_relation PRIMARY KEY (id),
82
- CONSTRAINT fk_from FOREIGN KEY (from_id) REFERENCES assets (id) ON DELETE CASCADE,
83
- CONSTRAINT fk_to FOREIGN KEY (to_id) REFERENCES assets (id) ON DELETE CASCADE,
+ CONSTRAINT fk_from FOREIGN KEY (from_id) REFERENCES assets (id),
+ CONSTRAINT fk_to FOREIGN KEY (to_id) REFERENCES assets (id),
84
CONSTRAINT fk_relation_source FOREIGN KEY (source_id) REFERENCES sources (id),
85
86
INDEX full_relation_type_from_to_idx (type, from_id, to_id),
0 commit comments