li7y/migrations/20240725174404_delete_item_event_with_item.down.sql

10 lines
284 B
MySQL
Raw Permalink Normal View History

2024-07-25 19:51:56 +02:00
-- SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
ALTER TABLE item_events
DROP CONSTRAINT item_events_item_fkey;
ALTER TABLE item_events
ADD CONSTRAINT item_events_item_fkey FOREIGN KEY (item) REFERENCES items(id);