Files
Erupe/server/migrations/sql/0005_distribution_drop_data.sql
Houmgaor fa09e4a39c 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.
2026-02-27 18:19:57 +01:00

2 lines
60 B
SQL

ALTER TABLE public.distribution DROP COLUMN IF EXISTS data;