You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.8 KiB

3 years ago
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
  5. *
  6. * @author Joas Schilling <coding@schilljs.com>
  7. * @author Robin Appelman <robin@icewind.nl>
  8. * @author Roeland Jago Douma <roeland@famdouma.nl>
  9. *
  10. * @license GNU AGPL version 3 or any later version
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License as
  14. * published by the Free Software Foundation, either version 3 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. *
  25. */
  26. namespace OCP\Migration;
  27. /**
  28. * @since 13.0.0
  29. */
  30. abstract class SimpleMigrationStep implements IMigrationStep {
  31. /**
  32. * Human readable name of the migration step
  33. *
  34. * @return string
  35. * @since 14.0.0
  36. */
  37. public function name(): string {
  38. return '';
  39. }
  40. /**
  41. * Human readable description of the migration step
  42. *
  43. * @return string
  44. * @since 14.0.0
  45. */
  46. public function description(): string {
  47. return '';
  48. }
  49. /**
  50. * {@inheritDoc}
  51. *
  52. * @since 13.0.0
  53. */
  54. public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
  55. }
  56. /**
  57. * {@inheritDoc}
  58. *
  59. * @since 13.0.0
  60. */
  61. public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
  62. return null;
  63. }
  64. /**
  65. * {@inheritDoc}
  66. *
  67. * @since 13.0.0
  68. */
  69. public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
  70. }
  71. }