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