Table of Contents

TXDataTenantConnectionPool.UpdateShardSchemas Method

Overloads

TXDataTenantConnectionPool.UpdateShardSchemas

Creates or updates the database schema of every shard registered in the catalog, using the default mapping model.

Remarks

Shards with status Disabled are skipped. Typically called once at server startup: schema migration is an explicit step, never a side effect of serving a request.

Syntax

Unit: XData.Comp.TenantConnectionPool

procedure TXDataTenantConnectionPool.UpdateShardSchemas; overload;

See also

TXDataTenantConnectionPool.UpdateShardSchemas()

Creates or updates the database schema of every shard registered in the catalog, using the given mapping models.

Remarks

Shards with status Disabled are skipped. Typically called once at server startup: schema migration is an explicit step, never a side effect of serving a request.

Syntax

Unit: XData.Comp.TenantConnectionPool

procedure TXDataTenantConnectionPool.UpdateShardSchemas(const ModelNames: ); overload;

Parameters

<-> Parameter Type Description
const ModelNames The names of the mapping models to create/update in each shard database.

See also