managarten/services/mana-core-auth/src
Wuesteon 7f3575387c 🐛 fix(auth-migrations): make initial migration idempotent
The migration was failing on staging because the auth schema already
existed from previous db:push operations. This fix makes all DDL
statements idempotent:

- CREATE SCHEMA IF NOT EXISTS for all schemas
- DO $$ BEGIN ... EXCEPTION WHEN duplicate_object ... END $$ for ENUMs
- CREATE TABLE IF NOT EXISTS for all tables
- CREATE INDEX IF NOT EXISTS for all indexes
- DO $$ BEGIN ... EXCEPTION WHEN duplicate_object ... END $$ for constraints

This ensures migrations can run safely against databases that already
have the schema partially or fully created.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 22:10:00 +01:00
..
__tests__/utils 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
ai 🐛 fix(auth): remove type-only import of ConfigService in AiService 2025-12-04 19:08:37 +01:00
auth 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
common debug(auth): add detailed logging to JwtAuthGuard 2025-12-08 22:52:59 +01:00
config 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
credits Fix wrong type 2025-12-04 23:25:25 +01:00
db 🐛 fix(auth-migrations): make initial migration idempotent 2025-12-18 22:10:00 +01:00
email feat(auth): add Brevo email integration for password reset and org invites 2025-12-16 03:33:15 +01:00
feedback Fix wrong type 2025-12-04 23:25:25 +01:00
health fix route 2025-12-05 00:50:23 +01:00
referrals feat(auth): add fraud detection, cron jobs, and admin endpoints to referral system 2025-12-07 16:09:39 +01:00
security 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
settings feat(settings): add device-specific settings storage 2025-12-11 23:49:18 +01:00
tags feat: major update with network graphs, themes, todo extensions, and more 2025-12-10 02:37:46 +01:00
app.module.ts 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
main.ts 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00