li7y/migrations/20240713134634_item_add_original_packaging.up.sql

7 lines
217 B
SQL

-- SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
ALTER TABLE items
ADD original_packaging UUID REFERENCES items(id) CHECK (original_packaging <> id);