From 8768faacaa0ff842c5b77820b64782fcaf1fa830 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 19 Sep 2017 12:34:06 +0200 Subject: [PATCH 1/3] Fix migration naming Signed-off-by: Joas Schilling --- ...170825134824.php => Version1004Date20170825134824.php} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename apps/dav/lib/Migration/{Version1004001Date20170825134824.php => Version1004Date20170825134824.php} (98%) diff --git a/apps/dav/lib/Migration/Version1004001Date20170825134824.php b/apps/dav/lib/Migration/Version1004Date20170825134824.php similarity index 98% rename from apps/dav/lib/Migration/Version1004001Date20170825134824.php rename to apps/dav/lib/Migration/Version1004Date20170825134824.php index a2a85d1e5b..b99f51322c 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, From d5b5fc7fcaa8edc6e8cfbd2318e529845d9a87cd Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 19 Sep 2017 12:49:42 +0200 Subject: [PATCH 2/3] Fix unsigned state Signed-off-by: Joas Schilling --- .../Version1004Date20170919104507.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 apps/dav/lib/Migration/Version1004Date20170919104507.php diff --git a/apps/dav/lib/Migration/Version1004Date20170919104507.php b/apps/dav/lib/Migration/Version1004Date20170919104507.php new file mode 100644 index 0000000000..3a0fb1ab90 --- /dev/null +++ b/apps/dav/lib/Migration/Version1004Date20170919104507.php @@ -0,0 +1,36 @@ +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; + } + +} From b72eaaab73cc47e320ead55ff481288823901a37 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 19 Sep 2017 14:25:10 +0200 Subject: [PATCH 3/3] Increase version Signed-off-by: Joas Schilling --- apps/dav/appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index 3d3bff52ea..61e7444afc 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -5,7 +5,7 @@ WebDAV endpoint AGPL owncloud.org - 1.4.1 + 1.4.2