title: Updating database table & column
body: <p>Using MVC4 and EF Code First</p>
  
  <p>I renamed my table/column-name i.e. table: from Categories to Category in the model and in the code and when I run the migration statement </p>
  
  <pre><code>Update-Database -Verbose -Force
  </code></pre>
  
  <p>I get an error: </p>
  
  <blockquote>
    <p>The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.Categories' and the index name 'PK_dbo.Categories'. The duplicate key value is (). Could not create constraint. See previous errors. The statement has been terminated.</p>
  </blockquote>
  
  <p>In the configuration file I have <code>AutomaticMigrationsEnabled = true;</code></p>
  
  <p>Is there something else I need to do to make the changes apply in the database?</p>