forked from bittercoder/Migrator.NET
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Wrong:
public virtual bool ColumnExists(string table, string column, bool ignoreCase)
{
try
{
if (ignoreCase)
{
return GetColumns(table).Any(col => col.Name.ToLower() == column.ToLower());
}
return GetColumns(table).Any(col => col.Name == column);
}
catch (Exception)
{
return false;
}
}
The exception could be thrown of any reason not just because the column does not exist. Major bug!