allow migration to work on sqlite
do not allow negative values in group_order