Using the expand and contract pattern for schema changes