I am using Entity Framework Core and doing migration. Since my program is purely development stage, how do I force the migration (overwrite the existing db scheme)? I tried with command add-migration someText
and update-database
but no success.
This error shows up because you probably have migration that includes table, column same like in one of previous migrations. Check every migration if there is no some duplicates. It sometimes happen when you revert your snapshot file. If you want more help with this issue you will need provide more information about your migrations and schema.