date_restrictions upgrade