Need help clearing the schema cache
There are a few different cache entries for the schema, schema:, schema:runtime, schema:runtime:1, and so on.

To clear the lot, try using a wildcard:

cache_clear_all('schema', 'cache', TRUE);