title: Re-create table with Entity Framework 5 and nuget
body: <p>I am using Code First to create a table.  </p>
  
  <p>I created the class, the mapping file and issued the add-migration command in nuget and then the update-database command</p>
  
  <p>I then changed the class and like an idiot deleted the table.</p>
  
  <p>I deleted the migration class file</p>
  
  <p>I issued a add-migration command</p>
  
  <p>When I issue the update-database command I get the following error:</p>
  
  <blockquote>
    <p>System.Data.SqlClient.SqlException (0x80131904): Cannot find the
    object "dbo.CorrectiveActionPlan" because it does not exist or you do
    not have permissions.    at
    System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
    Boolean breakConnection, Action<code>1 wrapCloseInAction)    at
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
    exception, Boolean breakConnection, Action</code>1 wrapCloseInAction)    at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)    at
    System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,
    SqlCommand cmdHandler, SqlDataReader dataStream,
    BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj, Boolean&amp; dataReady)    at
    System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String
    methodName, Boolean async, Int32 timeout)    at
    System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource<code>1
    completion, String methodName, Boolean sendToPipe, Int32 timeout,
    Boolean asyncWrite)    at
    System.Data.SqlClient.SqlCommand.ExecuteNonQuery()    at
    System.Data.Entity.Migrations.DbMigrator.ExecuteSql(DbTransaction
    transaction, MigrationStatement migrationStatement)    at
    System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ExecuteSql(DbTransaction
    transaction, MigrationStatement migrationStatement)    at
    System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable</code>1
    migrationStatements)    at
    System.Data.Entity.Migrations.Infrastructure.MigratorBase.ExecuteStatements(IEnumerable<code>1
    migrationStatements)    at
    System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String
    migrationId, XDocument targetModel, IEnumerable</code>1 operations, Boolean
    downgrading, Boolean auto)    at
    System.Data.Entity.Migrations.DbMigrator.ApplyMigration(DbMigration
    migration, DbMigration lastMigration)    at
    System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ApplyMigration(DbMigration
    migration, DbMigration lastMigration)    at
    System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable<code>1
    pendingMigrations, String targetMigrationId, String lastMigrationId)<br>
    at
    System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade(IEnumerable</code>1
    pendingMigrations, String targetMigrationId, String lastMigrationId)<br>
    at System.Data.Entity.Migrations.DbMigrator.Update(String
    targetMigration)    at
    System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update(String
    targetMigration)    at
    System.Data.Entity.Migrations.Design.ToolingFacade.UpdateRunner.RunCore()
    at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.Run()
    ClientConnectionId:a6e92a35-cc9e-4867-97a5-0a274081d853 Cannot find
    the object "dbo.CorrectiveActionPlan" because it does not exist or you
    do not have permissions.</p>
  </blockquote>
  
  <p>How do I force EF to recreate the table?</p>