schema migration for api count