14 lines
301 B
MySQL
14 lines
301 B
MySQL
|
-- SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
|
||
|
--
|
||
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
|
||
|
BEGIN;
|
||
|
|
||
|
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);
|
||
|
|
||
|
COMMIT;
|