DropTable.php 536 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Migration\Attributes;
  8. use Attribute;
  9. /**
  10. * attribute on table drop
  11. *
  12. * @since 30.0.0
  13. */
  14. #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS)]
  15. class DropTable extends TableMigrationAttribute {
  16. /**
  17. * @return string
  18. * @since 30.0.0
  19. */
  20. public function definition(): string {
  21. return 'Deletion of table \'' . $this->getTable() . '\'';
  22. }
  23. }