aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version14000Date20180712153140.php
blob: d719b0f803c968156b4caae630223dc906d165f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OC\Core\Migrations;

use OCP\DB\ISchemaWrapper;
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');
		$table->addColumn('note', 'text', ['notnull' => false]);

		return $schema;
	}
}