mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-17 18:32:51 -04:00
Allow ON DELETE CASCADE for receiving_id foreign key in links table
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE `ospos_attribute_links`
|
||||
DROP FOREIGN KEY `ospos_attribute_links_ibfk_4`;
|
||||
|
||||
ALTER TABLE `ospos_attribute_links`
|
||||
ADD CONSTRAINT `ospos_attribute_links_ibfk_4`
|
||||
FOREIGN KEY (`receiving_id`) REFERENCES `ospos_receivings`(`receiving_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE RESTRICT;
|
||||
Reference in New Issue
Block a user