2018-07-12 14:55:50 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2024-05-24 19:43:47 +02:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-07-12 14:55:50 +02:00
|
|
|
*/
|
|
|
|
namespace OC\Core\Migrations;
|
|
|
|
|
2018-07-13 11:41:53 +02:00
|
|
|
use OCP\DB\ISchemaWrapper;
|
2018-07-12 14:55:50 +02:00
|
|
|
use OCP\Migration\SimpleMigrationStep;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* add column for share notes
|
|
|
|
*
|
|
|
|
* Class Version14000Date20180712153140
|
|
|
|
*/
|
|
|
|
class Version14000Date20180712153140 extends SimpleMigrationStep {
|
|
|
|
public function changeSchema(\OCP\Migration\IOutput $output, \Closure $schemaClosure, array $options) {
|
|
|
|
/** @var ISchemaWrapper $schema */
|
|
|
|
$schema = $schemaClosure();
|
|
|
|
|
|
|
|
$table = $schema->getTable('share');
|
2018-07-13 15:35:46 +02:00
|
|
|
$table->addColumn('note', 'text', ['notnull' => false]);
|
2018-07-12 14:55:50 +02:00
|
|
|
|
|
|
|
return $schema;
|
|
|
|
}
|
|
|
|
}
|