mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 07:28:28 +02:00
✨ Remove automatic cascade on file_change table fk constraint
This commit is contained in:
parent
624750ad16
commit
893f19fa5e
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE file_change
|
||||
DROP CONSTRAINT file_change_file_id_fkey,
|
||||
DROP CONSTRAINT file_change_profile_id_fkey,
|
||||
ADD FOREIGN KEY (file_id) REFERENCES file(id) DEFERRABLE,
|
||||
ADD FOREIGN KEY (profile_id) REFERENCES profile(id) ON DELETE SET NULL DEFERRABLE;
|
Loading…
Add table
Add a link
Reference in a new issue