connection = $connection; } public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { // No schema changes, just data migration return null; } public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { $qb = $this->connection->getQueryBuilder(); // Update all bots with NULL approval_status to 'approved' $qb->update('educai_bots') ->set('approval_status', $qb->createNamedParameter('approved')) ->where($qb->expr()->isNull('approval_status')); $updated = $qb->executeStatement(); $output->info("Updated {$updated} legacy bots to 'approved' status."); } }