title: EF Core Migrations manual edits possible?
body: <p>I am using EF Core 2.0 in my sample project with some value object configurations. I modify the code and generate migrations via CLI command line. In the last migration rather than adding a new database table as it should, it is trying to rename existing tables to each other and create an extra table for existing one. I could not figure out the reason for it. </p>
  
  <p>Issue is, since with EF Core the snapshot is a separate auto-generated file from the migration itself I don't want to modify the snapshot. </p>
  
  <p>I only want to modify the migration script so that it will not rename multiple tables, and then generate the snapshot from the migrations I created.</p>
  
  <p>I did not see any command for this in the CLI - is it such a bad practice to modify the scaffolded migration and regenerate or am I missing some obvious new link where how to manually modify migration scripts is explained?</p>
  
  <p>Thanks a bunch.</p>
  
  <p>Update 1: After comments, added info about the snapshot from <a href="https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations" rel="nofollow noreferrer">this link</a>. </p>
  
  <p>Because the current database schema is represented in code, EF Core doesn't have to interact with the database to create migrations. When you add a migration, EF determines what changed by comparing the data model to the snapshot file. EF interacts with the database only when it has to update the database. +</p>