1
0

Version1004Date20170919104507.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\DAV\Migration;
  7. use OCP\DB\ISchemaWrapper;
  8. use OCP\Migration\IOutput;
  9. use OCP\Migration\SimpleMigrationStep;
  10. class Version1004Date20170919104507 extends SimpleMigrationStep {
  11. /**
  12. * @param IOutput $output
  13. * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
  14. * @param array $options
  15. * @return null|ISchemaWrapper
  16. * @since 13.0.0
  17. */
  18. public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
  19. /** @var ISchemaWrapper $schema */
  20. $schema = $schemaClosure();
  21. $table = $schema->getTable('addressbooks');
  22. $column = $table->getColumn('id');
  23. $column->setUnsigned(true);
  24. $table = $schema->getTable('calendarobjects');
  25. $column = $table->getColumn('id');
  26. $column->setUnsigned(true);
  27. $table = $schema->getTable('calendarchanges');
  28. $column = $table->getColumn('id');
  29. $column->setUnsigned(true);
  30. return $schema;
  31. }
  32. }