Skip to content

Commit

Permalink
Forgot do add "ON DELETE CASCADE" in MySQL patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
matcracker committed May 7, 2021
1 parent 44b2efd commit ceede3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/patches/mysql_patch.sql
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,19 @@ ALTER TABLE log_history
-- # }
-- # {19
ALTER TABLE blocks_log
ADD CONSTRAINT fk_blocks_log_id FOREIGN KEY (history_id) REFERENCES log_history (log_id);
ADD CONSTRAINT fk_blocks_log_id FOREIGN KEY (history_id) REFERENCES log_history (log_id) ON DELETE CASCADE;
-- # }
-- # {20
ALTER TABLE entities_log
ADD CONSTRAINT fk_entities_log_id FOREIGN KEY (history_id) REFERENCES log_history (log_id);
ADD CONSTRAINT fk_entities_log_id FOREIGN KEY (history_id) REFERENCES log_history (log_id) ON DELETE CASCADE;
-- # }
-- # {21
ALTER TABLE entities_log
ADD CONSTRAINT fk_entities_entityfrom FOREIGN KEY (entityfrom_uuid) REFERENCES entities (uuid);
-- # }
-- # {22
ALTER TABLE inventories_log
ADD CONSTRAINT fk_inventories_log_id FOREIGN KEY (history_id) REFERENCES log_history (log_id);
ADD CONSTRAINT fk_inventories_log_id FOREIGN KEY (history_id) REFERENCES log_history (log_id) ON DELETE CASCADE;
-- # }
-- # }
-- #}

0 comments on commit ceede3c

Please sign in to comment.