Cleaned up code in migrations
This commit is contained in:
@@ -81,10 +81,7 @@ namespace DbTools {
|
||||
try {
|
||||
using (var cmd = dbConnection.CreateCommand()) {
|
||||
cmd.CommandText = File.ReadAllText(migration);
|
||||
if (cmd.ExecuteNonQuery() > 0) {
|
||||
wasSuccessful = true;
|
||||
}
|
||||
wasSuccessful = false;
|
||||
wasSuccessful = cmd.ExecuteNonQuery() > 0;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
error = ex;
|
||||
|
||||
Reference in New Issue
Block a user