1
0

Version14000Date20180712153140.php 675 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Core\Migrations;
  7. use OCP\DB\ISchemaWrapper;
  8. use OCP\Migration\SimpleMigrationStep;
  9. /**
  10. * add column for share notes
  11. *
  12. * Class Version14000Date20180712153140
  13. */
  14. class Version14000Date20180712153140 extends SimpleMigrationStep {
  15. public function changeSchema(\OCP\Migration\IOutput $output, \Closure $schemaClosure, array $options) {
  16. /** @var ISchemaWrapper $schema */
  17. $schema = $schemaClosure();
  18. $table = $schema->getTable('share');
  19. $table->addColumn('note', 'text', ['notnull' => false]);
  20. return $schema;
  21. }
  22. }