diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-19 16:34:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-19 16:34:39 +0200 |
commit | 11d2006b44b7d70e11f74e941de52a41d934d5e0 (patch) | |
tree | 7c0de5355ba0c151e0bbdbb4dcd4e3adc293e6d8 /apps | |
parent | 916a1b56620ea57492a4a4ad4b9005a1bd4fc9d9 (diff) | |
parent | b72eaaab73cc47e320ead55ff481288823901a37 (diff) | |
download | nextcloud-server-11d2006b44b7d70e11f74e941de52a41d934d5e0.tar.gz nextcloud-server-11d2006b44b7d70e11f74e941de52a41d934d5e0.zip |
Merge pull request #6562 from nextcloud/fix-unsigned-typo
Fix unsigned typo
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/appinfo/info.xml | 2 | ||||
-rw-r--r-- | apps/dav/lib/Migration/Version1004Date20170825134824.php (renamed from apps/dav/lib/Migration/Version1004001Date20170825134824.php) | 8 | ||||
-rw-r--r-- | apps/dav/lib/Migration/Version1004Date20170919104507.php | 36 |
3 files changed, 41 insertions, 5 deletions
diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index 3d3bff52ea1..61e7444afc5 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -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/> diff --git a/apps/dav/lib/Migration/Version1004001Date20170825134824.php b/apps/dav/lib/Migration/Version1004Date20170825134824.php index a2a85d1e5b0..b99f51322c5 100644 --- a/apps/dav/lib/Migration/Version1004001Date20170825134824.php +++ b/apps/dav/lib/Migration/Version1004Date20170825134824.php @@ -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, diff --git a/apps/dav/lib/Migration/Version1004Date20170919104507.php b/apps/dav/lib/Migration/Version1004Date20170919104507.php new file mode 100644 index 00000000000..3a0fb1ab904 --- /dev/null +++ b/apps/dav/lib/Migration/Version1004Date20170919104507.php @@ -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; + } + +} |