forked from fahrPool/fahrPool
The plan's original upsert(onConflict: "auftrag_id,position") for auftrag_fotos cannot work: PostgREST's onConflict generates an unqualified ON CONFLICT clause that can't target Task 3's partial unique index (position <> 'schaden'), and even a working ON CONFLICT would hit RLS since only admin has UPDATE on auftrag_fotos. Switched to plain insert with checked errors on both write paths, consistent with the spec's "Loeschen/Ersetzen nur durch Admin" rule. |
||
|---|---|---|
| .. | ||
| plans | ||
| specs | ||