title: Generate full SQL script from EF 5 Code First Migrations
body: <p>How do I use Entity Framework 5 Code First Migrations to create a full database script from the initial (empty) state to the latest migration?</p>
  
  <p>The blog post at <a href="http://msdn.microsoft.com/en-us/data/jj591621.aspx" rel="noreferrer">MSDN Blog</a> suggests to do this, but it seems to create an empty script:</p>
  
  <pre><code>Update-Database -Script -SourceMigration: $InitialDatabase
  </code></pre>