1
0
Fork 0
fahrPool/supabase
Jonny 9f410cbe80 fix: remove photo-count check from DB trigger, photos now optional at Fahrtbeginn
- Add migration 20260818120000_auftrag_fotos_optional_trigger.sql that replaces
  check_auftrag_status_transition() function, removing ONLY the photo-count check
  while preserving all other validation (start_km, end_km, uebergabe_bestaetigt_at,
  status transitions, column lockdown, role-based restrictions)
- Update pgTAP test: plan(13) -> plan(12), replace photo-mandatory test with
  test verifying transition succeeds without photos
- Completes DB-level optional photos feature (app-level optional already done in Task 1)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-18 16:32:34 +02:00
..
migrations fix: remove photo-count check from DB trigger, photos now optional at Fahrtbeginn 2026-08-18 16:32:34 +02:00
tests fix: remove photo-count check from DB trigger, photos now optional at Fahrtbeginn 2026-08-18 16:32:34 +02:00
.gitignore feat: add profiles table, role enum and auto-create trigger 2026-07-04 11:30:13 +02:00
config.toml feat: add profiles table, role enum and auto-create trigger 2026-07-04 11:30:13 +02:00