-
Notifications
You must be signed in to change notification settings - Fork 0
chore: Prismaマイグレーションテーブルを削除 #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| DROP TABLE "_prisma_migrations" CASCADE; | ||||||
|
||||||
| DROP TABLE "_prisma_migrations" CASCADE; | |
| DROP TABLE IF EXISTS "_prisma_migrations"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Info: CASCADE on DROP TABLE is safe but worth noting
The migration at
drizzle/0004_loose_wasp.sql:1usesDROP TABLE "_prisma_migrations" CASCADE. TheCASCADEkeyword will also drop any objects that depend on this table (e.g., views, foreign keys referencing it). Since_prisma_migrationsis an internal Prisma bookkeeping table with no foreign key references from other tables (confirmed by inspecting the snapshot),CASCADEhas no practical effect here beyond a simpleDROP TABLE. It's not a bug, but in general, usingCASCADEon production drops warrants a second look to ensure nothing unexpected is removed.Was this helpful? React with 👍 or 👎 to provide feedback.