Merge pull request #6562 from nextcloud/fix-unsigned-typo

Fix unsigned typo
pull/6564/head
Morris Jobke 7 years ago committed by GitHub
commit 11d2006b44
  1. 2
      apps/dav/appinfo/info.xml
  2. 8
      apps/dav/lib/Migration/Version1004Date20170825134824.php
  3. 36
      apps/dav/lib/Migration/Version1004Date20170919104507.php

@ -5,7 +5,7 @@
<description>WebDAV endpoint</description>
<licence>AGPL</licence>
<author>owncloud.org</author>
<version>1.4.1</version>
<version>1.4.2</version>
<default_enable/>
<types>
<filesystem/>

@ -26,7 +26,7 @@ use Doctrine\DBAL\Schema\Schema;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
class Version1004001Date20170825134824 extends SimpleMigrationStep {
class Version1004Date20170825134824 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `Schema`
@ -44,7 +44,7 @@ class Version1004001Date20170825134824 extends SimpleMigrationStep {
'autoincrement' => true,
'notnull' => true,
'length' => 11,
'unsgined' => true,
'unsigned' => true,
]);
$table->addColumn('principaluri', 'string', [
'notnull' => false,
@ -143,7 +143,7 @@ class Version1004001Date20170825134824 extends SimpleMigrationStep {
'autoincrement' => true,
'notnull' => true,
'length' => 11,
'unsgined' => true,
'unsigned' => true,
]);
$table->addColumn('calendardata', 'blob', [
'notnull' => false,
@ -256,7 +256,7 @@ class Version1004001Date20170825134824 extends SimpleMigrationStep {
'autoincrement' => true,
'notnull' => true,
'length' => 11,
'unsgiend' => true,
'unsigned' => true,
]);
$table->addColumn('uri', 'string', [
'notnull' => false,

@ -0,0 +1,36 @@
<?php
namespace OCA\DAV\Migration;
use Doctrine\DBAL\Schema\Schema;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
class Version1004Date20170919104507 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param \Closure $schemaClosure The `\Closure` returns a `Schema`
* @param array $options
* @return null|Schema
* @since 13.0.0
*/
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
/** @var Schema $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;
}
}
Loading…
Cancel
Save