pub async fn run_migration(
pool: &Pool<Postgres>,
registry: &SchemaRegistry,
) -> Result<(), OperationOutcomeError>Expand description
Creates the anchor, the shared tables and one table per resource type.
Idempotent: new parameters are added with ADD COLUMN IF NOT EXISTS, and
existing rows read NULL until reindexed.
ยงErrors
Returns an error if the migration lock cannot be taken or any DDL fails.