Skip to content

Commit 04bd6b5

Browse files
committed
Fixed remove column, so it quotes the column name if needed.
1 parent 5454f8b commit 04bd6b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Migrator.Providers/TransformationProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ public virtual void RemoveColumn(string table, string column)
222222
{
223223
if (ColumnExists(table, column))
224224
{
225+
column = QuoteColumnNameIfRequired(column);
225226
ExecuteNonQuery(String.Format("ALTER TABLE {0} DROP COLUMN {1} ", table, column));
226227
}
227228
}

0 commit comments

Comments
 (0)