hasTable('ldap_group_mapping_backup')) { // Backup table does not exist return; } $output->startProgress(); $this->copyGroupMappingData('ldap_group_mapping', 'ldap_group_mapping_backup'); $output->finishProgress(); } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options * @return null|ISchemaWrapper */ public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); if (!$schema->hasTable('ldap_group_mapping_backup')) { // Backup table does not exist return null; } $schema->dropTable('ldap_group_mapping'); return $schema; } }