title: Entity framework migrations - generate sql script of current database model
body: <p>I am trying to generate sql script that will create a database for me. So far I tried this:</p>
  
  <pre><code>Update-Database -Script -SourceMigration: $InitialDatabase
  Update-Database -Script -SourceMigration:0
  </code></pre>
  
  <p>But both of those are giving me scripts that are beggining from first migration to last. And there is no initial state of database, which should include creation of the database itself, and single table that was there when I added migrations to my project.</p>
  
  <p>So how do I recreate my model now, when migrations aren't giving me full sql script?</p>