fixup! Delete item event with item
This commit is contained in:
parent
1aee8ee22d
commit
e06531e1cd
|
@ -2,12 +2,8 @@
|
||||||
--
|
--
|
||||||
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
ALTER TABLE item_events
|
ALTER TABLE item_events
|
||||||
DROP CONSTRAINT item_events_item_fkey;
|
DROP CONSTRAINT item_events_item_fkey;
|
||||||
|
|
||||||
ALTER TABLE item_events
|
ALTER TABLE item_events
|
||||||
ADD CONSTRAINT item_events_item_fkey FOREIGN KEY (item) REFERENCES items(id);
|
ADD CONSTRAINT item_events_item_fkey FOREIGN KEY (item) REFERENCES items(id);
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
|
@ -2,12 +2,8 @@
|
||||||
--
|
--
|
||||||
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
ALTER TABLE item_events
|
ALTER TABLE item_events
|
||||||
DROP CONSTRAINT item_events_item_fkey;
|
DROP CONSTRAINT item_events_item_fkey;
|
||||||
|
|
||||||
ALTER TABLE item_events
|
ALTER TABLE item_events
|
||||||
ADD CONSTRAINT item_events_item_fkey FOREIGN KEY (item) REFERENCES items(id) ON DELETE CASCADE;
|
ADD CONSTRAINT item_events_item_fkey FOREIGN KEY (item) REFERENCES items(id) ON DELETE CASCADE;
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
Loading…
Reference in a new issue