aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version14000Date20180712153140.php
blob: b1a295ea2f670b9d0e0270c25341e8d5f49363e5 (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
27
28
<?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\IOutput;
use OCP\Migration\SimpleMigrationStep;

/**
 * add column for share notes
 *
 * Class Version14000Date20180712153140
 */
class Version14000Date20180712153140 extends SimpleMigrationStep {
	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
		/** @var ISchemaWrapper $schema */
		$schema = $schemaClosure();

		$table = $schema->getTable('share');
		$table->addColumn('note', 'text', ['notnull' => false]);

		return $schema;
	}
}