Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/dav/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
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`
Expand All @@ -44,7 +44,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'autoincrement' => true,
'notnull' => true,
'length' => 11,
'unsgined' => true,
'unsigned' => true,
]);
$table->addColumn('principaluri', 'string', [
'notnull' => false,
Expand Down Expand Up @@ -143,7 +143,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'autoincrement' => true,
'notnull' => true,
'length' => 11,
'unsgined' => true,
'unsigned' => true,
]);
$table->addColumn('calendardata', 'blob', [
'notnull' => false,
Expand Down Expand Up @@ -256,7 +256,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'autoincrement' => true,
'notnull' => true,
'length' => 11,
'unsgiend' => true,
'unsigned' => true,
]);
$table->addColumn('uri', 'string', [
'notnull' => false,
Expand Down
36 changes: 36 additions & 0 deletions apps/dav/lib/Migration/Version1004Date20170919104507.php
Original file line number Diff line number Diff line change
@@ -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;
}

}