Fixed migrations not running on startup

This commit is contained in:
2026-01-19 03:52:00 +01:00
parent 6e9e795a16
commit c13214c4e9
2 changed files with 5 additions and 10 deletions

View File

@@ -37,15 +37,6 @@ public class SearchdomainManager
connection = new MySqlConnection(connectionString);
connection.Open();
helper = new SQLHelper(connection, connectionString);
try
{
DatabaseMigrations.Migrate(helper);
}
catch (Exception ex)
{
_logger.LogCritical("Unable to migrate the database due to the exception: {ex}", [ex.Message]);
throw;
}
}
public Searchdomain GetSearchdomain(string searchdomain)