mirror of
https://github.com/nextcloud/server.git
synced 2025-02-06 01:20:16 +00:00
9d4b944098
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
39 lines
1 KiB
PHP
39 lines
1 KiB
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCA\DAV\Migration;
|
|
|
|
use OCP\DB\ISchemaWrapper;
|
|
use OCP\Migration\IOutput;
|
|
use OCP\Migration\SimpleMigrationStep;
|
|
|
|
class Version1004Date20170919104507 extends SimpleMigrationStep {
|
|
|
|
/**
|
|
* @param IOutput $output
|
|
* @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
|
|
* @param array $options
|
|
* @return null|ISchemaWrapper
|
|
* @since 13.0.0
|
|
*/
|
|
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
|
|
/** @var ISchemaWrapper $schema */
|
|
$schema = $schemaClosure();
|
|
|
|
$table = $schema->getTable('addressbooks');
|
|
$column = $table->getColumn('id');
|
|
$column->setUnsigned(true);
|
|
|
|
$table = $schema->getTable('calendarobjects');
|
|
$column = $table->getColumn('id');
|
|
$column->setUnsigned(true);
|
|
|
|
$table = $schema->getTable('calendarchanges');
|
|
$column = $table->getColumn('id');
|
|
$column->setUnsigned(true);
|
|
|
|
return $schema;
|
|
}
|
|
}
|