Skip to content
Corex

WpMigrationTableRunner

Corex\Config\DataModels\WpMigrationTableRunner · class · Config layer

The $wpdb implementation of the managed-table migration boundary. Two things are worth stating plainly about the SQL here. First, the plan statements come from a ManagedTable declaration — code the site installed, never request data — and the only value substituted into them is the table’s own prefixed name, which the Migrator derives. Second, identifiers cannot be bound with %i inside a DDL statement the way values can, so table names are validated against a strict pattern before they are interpolated and rejected otherwise.

runPlan(string $table, array $statements): int

Section titled “runPlan(string $table, array $statements): int”

restore(string $table, string $snapshot): bool

Section titled “restore(string $table, string $snapshot): bool”