So, I have the main problem associated with creating a transfer, when I do not have database synchronization (until the last migration there is no database at all) and have already made significant changes to my model.
These are the specific details:
- Have a sequence of explicit migrations.
- There is no database. In short, you have many pending changes.
- Changes made to models / context.
- When trying to add migration, he will complain that explicit migrations are waiting .
- If I try to migrate (and bring my database in synchronization), either through Update-Database or migrate.exe, it will fail (after successful application of explicit migrations), and automatic migrations will not be enabled.
- I don't want to enable automatic migration either (to prevent any circuit changes that need to be committed, and missing in the code.)
I understand that after the failure in No. 5, I can now start # 4. Then try again # 5 and voilΓ‘.
My question is: if this is the expected approach to solve this stupid situation.
source share