Creation of empty Migration
See original GitHub issueProblem
Prisma Migrate will not allow me to create an empty migration that I can fill with SQL myself. When I want to only execute SQL for information that is not stored in my Prisma Schema, that is a hassle.
Suggested solution
Let me generate empty migrations.
Alternatives
- Add a fake model to the schema, create the migration with
--create-only
, remove the fake model again, adapt themigration.sql
file, runnpx prisma migrate dev
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
EF migration shows empty Up() Down() methods
Infortunately I get an empty migration Up() and Down() method. When I look in the database there is a __migrationHistory available with the...
Read more >Generating Migrations - Doctrine
Migrations can be created for you if you're using the Doctrine 2 ORM or the DBAL Schema Representation. Empty migration classes can also...
Read more >ef6 create empty migration . Today I Learned (secretGeek)
You'll receive an "empty" migration file, something like this: copy namespace MyDbProject.Migrations { using System; using System.Data.Entity.Migrations ...
Read more >Code First Migrations with an existing database - EF6
Option Two: Use empty database as a starting point · Run the Add-Migration InitialCreate command in Package Manager Console. · Comment out all ......
Read more >Add option to generate empty migration files even ... - GitHub
It's actually already possible with prisma migrate dev --create-only if no change is detected an empty migration file will still be created and ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ugh, why does this happen to me all the time. I’ll try to find the other one again :p
Yes, equivalent of creating the folder and empty file. Feel free to fix my misleading description above.