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