forked from fahrPool/fahrPool
fahrtBeginnen uses plain insert (not upsert) for auftrag_fotos writes: the partial unique index from Task 3 (where position <> 'schaden') can't be targeted by PostgREST's onConflict option (Postgres 42P10), and fahrer have no UPDATE grant on auftrag_fotos anyway, so an upsert's DO UPDATE branch could never succeed for them. Verified live against the local Supabase stack that the original upsert-based approach silently wrote zero photo rows, blocking every real fahrtBeginnen attempt at the DB trigger. |
||
|---|---|---|
| .. | ||
| auftraege | ||
| dashboard | ||
| login | ||
| favicon.ico | ||
| globals.css | ||
| layout.tsx | ||
| page.module.css | ||
| page.tsx | ||