migration for collapsing/expanding line items in the db