stack
stack copied to clipboard
Auto migration
[!IMPORTANT] Introduces an automated database migration system using Prisma, replacing manual commands with scripts and updating workflows and documentation accordingly.
- Behavior:
- Introduces auto-migration system using
db-migrations.tsandgenerate-migration-imports.ts.- Replaces manual migration commands with
db:init,db:reset,db:seed, anddb:migration-geninpackage.json.- Updates workflows in
check-prisma-migrations.yamlande2e-api-tests.yamlto use new migration commands.- Scripts and Utilities:
- Adds
applyMigrations,getMigrationCheckQuery, andrunQueryAndMigrateIfNeededinauto-migrations/index.tsx.- Implements
getMigrationFilesinauto-migrations/utils.tsxto read migration files.- Adds tests in
auto-migration.tests.tsto verify migration application and concurrency handling.- Misc:
- Updates
.gitignoreto excludemigration-files.ts.- Modifies
README.mdandself-host.mdxto reflect new migration commands.- Adjusts
turbo.jsonto include new db tasks without caching.This description was created by
for 97673c022d7a311e75e94b219ac29ce4b69c6d0c. It will automatically update as commits are pushed.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| stack-backend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 24, 2025 0:32am |
| stack-dashboard | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 24, 2025 0:32am |
| stack-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 24, 2025 0:32am |
| stack-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 24, 2025 0:32am |
😱 Found 8 issues. Time to roll up your sleeves! 😱
🗒️ View all ignored comments in this repo
- The constraint 'TokenStoreType extends string' is too restrictive. It should likely be 'TokenStoreType extends string | object' to match the condition check in line 113 where TokenStoreType is checked against {}
- Return type mismatch - the interface declares useUsers() returning ServerUser[] but the Team interface that this extends declares useUsers() returning TeamUser[]
- There is a syntax error in the super constructor call due to the ellipsis operator used incorrectly. Objects aren't being merged correctly. This syntax usage can lead to runtime errors when trying to pass the merged object to 'super()'. Verify that the intended alterations to the object occur before or outside of the super() call if needed.