]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust calendars.components to 64 chars
authorVincent Petry <vincent@nextcloud.com>
Thu, 29 Oct 2020 14:12:21 +0000 (15:12 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:50 +0000 (11:12 +0100)
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
apps/dav/lib/Migration/Version1004Date20170825134824.php

index a6a9703dc4bb0463f69dfaec31dcdbd4caed4040..53c1ebe299cf8e2d8416516f8fd859cb27ac75cb 100644 (file)
@@ -251,6 +251,12 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
                        ]);
                        $table->setPrimaryKey(['id']);
                        $table->addUniqueIndex(['principaluri', 'uri'], 'calendars_index');
+               } else {
+                       $table = $schema->getTable('calendars');
+                       $table->changeColumn('components', [
+                               'notnull' => false,
+                               'length' => 64,
+                       ]);
                }
 
                if (!$schema->hasTable('calendarchanges')) {