li7y/migrations/20240711222015_item_add_short_id.up.sql

7 lines
192 B
MySQL
Raw Permalink Normal View History

-- SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
ALTER TABLE items
ADD short_id INTEGER UNIQUE GENERATED ALWAYS AS IDENTITY;