Ensuring schema consistency