fix(migrations): drop unused data column from distribution table (#169)

The distribution table had a `data bytea NOT NULL` column that was never
read by the Go code — item data is stored in distribution_items instead.
The NOT NULL constraint forced dummy values in seed data and test inserts.

Remove the column from the baseline schema, seed data, and tests, and
add migration 0005 to drop it from existing databases.
This commit is contained in:
Houmgaor
2026-02-27 18:19:57 +01:00
parent 21f9a79b62
commit fa09e4a39c
5 changed files with 10 additions and 6 deletions

View File

@@ -264,7 +264,6 @@ CREATE TABLE public.distribution (
max_sr integer,
min_gr integer,
max_gr integer,
data bytea NOT NULL,
rights integer,
selection boolean
);

View File

@@ -0,0 +1 @@
ALTER TABLE public.distribution DROP COLUMN IF EXISTS data;