Complete the collection migrating script