Cleaned up code in migrations

This commit is contained in:
2025-08-31 12:04:08 -05:00
parent 547c26af32
commit f7d815eed2

View File

@@ -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;