I guess you are using MySQL v8 or newer. Place the attached file in lib/console/migrations folder and replace the existing one. Then go to the Settings->Contol Cache page, select Migration apply option and click Flush button. m230721_163716_groups_sort_order.php