#18895: Fixing DROP INDEX on SQL 2012

Work Item: 18895

--HG--
branch : 1.x
This commit is contained in:
nswenson
2012-08-14 16:34:37 -07:00
parent 13ff9f61db
commit 946b1f610e

View File

@@ -225,9 +225,9 @@ namespace Orchard.Data.Migration.Interpreters {
return;
}
builder.AppendFormat("drop index {0}.{1}",
_dialect.QuoteForTableName(PrefixTableName(command.TableName)),
_dialect.QuoteForColumnName(PrefixTableName(command.IndexName)));
builder.AppendFormat("drop index {0} ON {1}",
_dialect.QuoteForColumnName(PrefixTableName(command.IndexName)),
_dialect.QuoteForTableName(PrefixTableName(command.TableName)));
_sqlStatements.Add(builder.ToString());
}