Properly apply migration for adding unique index to publishings