mirror of
https://github.com/nextcloud/server.git
synced 2024-12-29 16:38:28 +00:00
1e04619675
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
35 lines
860 B
PHP
35 lines
860 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCA\Files_Sharing\Migration;
|
|
|
|
use Closure;
|
|
use OCP\DB\ISchemaWrapper;
|
|
use OCP\DB\Types;
|
|
use OCP\Migration\IOutput;
|
|
use OCP\Migration\SimpleMigrationStep;
|
|
|
|
class Version24000Date20220208195521 extends SimpleMigrationStep {
|
|
|
|
/**
|
|
* @param IOutput $output
|
|
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
|
* @param array $options
|
|
* @return null|ISchemaWrapper
|
|
*/
|
|
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
|
|
$schema = $schemaClosure();
|
|
$table = $schema->getTable('share');
|
|
$table->addColumn('password_expiration_time', Types::DATETIME, [
|
|
'notnull' => false,
|
|
]);
|
|
return $schema;
|
|
}
|
|
|
|
}
|