Hi All,
in my application i use code first.When its create a database at first time, its create the UserNameIndex against the User table (I'm using Identity here). If i want delete that index, i just add-migration and on the Down method i add the following code.
public override void Down()
{
DropIndex("dbo.Users", new[] { "UserNameIndex" });
}
After i update-database, its doesn't update the user table anymore, please help me to solve it.
Thanks
What I have tried:
1. Add-migration InitialCreate, its create following class
public partial class InitialCreate : DbMigration
{
public override void Up()
{
}
public override void Down()
{
DropIndex("dbo.Users", new[] { "UserNameIndex" });
}
}
2. Update-database