fix analytics migrations