entrypoint.sh: removed --accept-data-loss from prisma db push. That flag was silently dropping fs_users, fs_projects etc. on every container restart, wiping all user/project data. Made the push non-fatal so a schema mismatch doesn't block startup. create/route.ts: fixed same broken ON CONFLICT expression as authOptions.ts — replaced with explicit SELECT + INSERT/UPDATE to reliably upsert fs_users before inserting the project. Made-with: Cursor
2.6 KiB
2.6 KiB