diff --git a/product/roundhouse/databases/DefaultDatabase.cs b/product/roundhouse/databases/DefaultDatabase.cs index 648e8dd..370ae45 100644 --- a/product/roundhouse/databases/DefaultDatabase.cs +++ b/product/roundhouse/databases/DefaultDatabase.cs @@ -279,6 +279,7 @@ public string get_current_script_hash(string script_name) DetachedCriteria crit = DetachedCriteria.For() .Add(Restrictions.Eq("script_name", script_name)) + .AddOrder(Order.Desc("id")) .SetMaxResults(1); try