mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
#18895: Fixing DROP INDEX on SQL 2012
Work Item: 18895 --HG-- branch : 1.x
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user