1
0

Version1190Date20230706134109.php 683 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\User_LDAP\Migration;
  8. use Closure;
  9. use OCP\DB\ISchemaWrapper;
  10. use OCP\Migration\IOutput;
  11. use OCP\Migration\SimpleMigrationStep;
  12. class Version1190Date20230706134109 extends SimpleMigrationStep {
  13. public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
  14. /** @var ISchemaWrapper $schema */
  15. $schema = $schemaClosure();
  16. if ($schema->hasTable('ldap_group_members')) {
  17. $schema->dropTable('ldap_group_members');
  18. return $schema;
  19. }
  20. return null;
  21. }
  22. }