Add data migration to fix bad unpublishing