Fix asset owner deletion
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
6
pkg/coredata/migrations/20251003T102644Z.sql
Normal file
6
pkg/coredata/migrations/20251003T102644Z.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE assets DROP CONSTRAINT assets_owner_id_fkey;
|
||||
ALTER TABLE assets ADD CONSTRAINT assets_owner_id_fkey
|
||||
FOREIGN KEY (owner_id)
|
||||
REFERENCES peoples(id)
|
||||
ON UPDATE CASCADE
|
||||
ON DELETE RESTRICT;
|
||||
Reference in New Issue
Block a user