1
0
Fork 0
fahrPool/supabase/migrations
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
..
20260704092843_profiles.sql fix: never derive new user role from raw_user_meta_data (privilege escalation) 2026-07-04 11:48:26 +02:00
20260704095119_rls_profiles.sql feat: add RLS policies and pgTAP tests for profiles 2026-07-04 11:58:09 +02:00
20260704224211_add_profiles_update_with_check.sql test: cover profiles UPDATE RLS boundary and privilege-escalation trigger 2026-07-05 00:45:27 +02:00
20260705085814_orte_fahrzeuge.sql feat: add orte and fahrzeuge lookup tables with RLS 2026-07-05 10:59:55 +02:00
20260705090655_auftraege.sql fix: gate auftraege RLS policies on user_role() to close readonly claim gap 2026-07-05 11:27:27 +02:00
20260705144530_auftrag_fotos.sql fix: allow schaden photos during unterwegs and close final-review gaps 2026-07-06 06:57:22 +02:00
20260705145543_auftrag_status_trigger.sql fix: close stornieren RLS gap and harden fahrtBeenden/stornieren 2026-07-06 06:22:53 +02:00
20260705150911_auftrag_fotos_bucket.sql fix: allow schaden photos during unterwegs and close final-review gaps 2026-07-06 06:57:22 +02:00
20260707090000_disponent_sieht_fahrer_profile.sql feat: allow disponent to see fahrer profiles for Kanban assignment 2026-07-07 15:35:40 +02:00
20260713090000_arbeitszeiten.sql fix: close arbeitszeiten INSERT audit-trail gap and policy name length 2026-07-13 16:24:53 +02:00
20260714090000_arbeitszeiten_ein_offene_schicht.sql fix: unify Zeiterfassung timezone display and add DB guard against double clock-in 2026-07-14 10:27:50 +02:00
20260818120000_auftrag_fotos_optional_trigger.sql fix: remove photo-count check from DB trigger, photos now optional at Fahrtbeginn 2026-08-18 16:32:34 +02:00