mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
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:
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Distribution table: remove unused `data bytea NOT NULL` column that prevented seed data from matching Go code expectations (#169)
|
||||
|
||||
### Added
|
||||
|
||||
- API: Standardized JSON error responses (`{"error":"...","message":"..."}`) across all endpoints via `writeError` helper
|
||||
|
||||
Reference in New Issue
Block a user