Commit 018959d
committed
fix: auto-run Prisma migrations on deployment
Added automatic migration steps to package.json:
- build: Now runs `prisma generate` to create Prisma Client
- start: Now runs `prisma migrate deploy` before starting server
This ensures database schema is automatically set up on Railway/Render
deployments. Without this, the app would crash with "table does not exist"
errors because migrations were never run.
Fixes 500 errors on auth endpoints due to missing database tables.1 parent 6f95747 commit 018959d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments