feat(frame)!: replace shutter_speed entity with seconds + bulb columns #40
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/aperture-shutter-rings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drop the shutter_speed lookup table and rewrite frame.shutterSpeed (FK)
into two new columns: shutter_speed_seconds (real, nullable) and bulb
(boolean, NOT NULL DEFAULT false). The migration backfills existing
frames by parsing each shutter_speed.value label ('B', '30"', '1/125', ...)
into the new shape, then drops the FK and the lookup table.
Frame DTOs, service, shoot service, import (legacy v1-v4 label parsing)
and export (v5) all updated. The /shutter-speed module and seed data are
removed entirely.
BREAKING CHANGE: /shutter-speed endpoints removed. CreateFrameDto.shutterSpeed
replaced by shutterSpeedSeconds + bulb. Frame responses no longer carry
shutterSpeedValue. Export bumps to version 5; v1-v4 archives still import.
Bumps to v8.0.0; seeds the v7.0.0 changelog entry the front matches.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Drop the shutter_speed lookup table and rewrite frame.shutterSpeed (FK) into two new columns: shutter_speed_seconds (real, nullable) and bulb (boolean, NOT NULL DEFAULT false). The migration backfills existing frames by parsing each shutter_speed.value label ('B', '30"', '1/125', ...) into the new shape, then drops the FK and the lookup table. Frame DTOs, service, shoot service, import (legacy v1-v4 label parsing) and export (v5) all updated. The /shutter-speed module and seed data are removed entirely. BREAKING CHANGE: /shutter-speed endpoints removed. CreateFrameDto.shutterSpeed replaced by shutterSpeedSeconds + bulb. Frame responses no longer carry shutterSpeedValue. Export bumps to version 5; v1-v4 archives still import. Bumps to v8.0.0; seeds the v7.0.0 changelog entry the front matches. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>