Simon Bruder
c4a73204aa
This vastly changes how item names are displayed. To make this more ergonomic, it adds some helper macros. This also aids in adhering to DRY.
14 lines
264 B
SQL
14 lines
264 B
SQL
-- SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
ALTER TABLE items
|
|
DROP CONSTRAINT name_not_empty;
|
|
|
|
UPDATE items
|
|
SET name = ''
|
|
WHERE NAME IS NULL;
|
|
|
|
ALTER TABLE items
|
|
ALTER name SET NOT NULL;
|