Open Jantero93 opened 1 month ago
I know it's kind of strange to have two db managment tool. But Im only using Entity Framework Core with OpenIddict related tables because EF can handle migration automatically. Otherwise I want use only grate and handle db calls manually with Dapper etc.
EDIT: Tried rewrite whole post with better english
I have a use case where I need to drop a database without continuing the migration. Specifically, I have a database rebuild script that first drops the database. I want to handle creating the database with Grate (setting collation, etc.) on SQL Server.
So my flow on database rebuild
So my ultimate goal have
RebuildDatabase.sh
containining (WITH SINGLE GRATE FOLDER) something like
Now my workaround is to create set Drop & Create database script different folder and run them from master db (I can't use --drop flag, because that would trigger migrations before Entity Framework Core migrations. And when I dont use --drop, grate will not trigger scripts in dropDatabase folder)
So my current setup is something like this (example)
Then my another ultimate goal is have UpdateDatabase.sh what would contain