fix counter history migration
counter history update in alliance worker