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. |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| lib | ||
| public | ||
| .dockerignore | ||
| .env.local.example | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| eslint.config.mjs | ||
| middleware.ts | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||
README.md
web
See the root README.md for the full setup sequence — this is a
sub-directory of a larger self-hosted Supabase + Next.js project, not a
standalone create-next-app.