]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust further columns
authorVincent Petry <vincent@nextcloud.com>
Thu, 29 Oct 2020 14:27:22 +0000 (15:27 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:50 +0000 (11:12 +0100)
- calendarsubscriptions.lastmodified -> not null
- external_config.value -> allow null

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
apps/dav/lib/Migration/Version1004Date20170825134824.php
apps/files_external/lib/Migration/Version1011Date20200630192246.php

index 53c1ebe299cf8e2d8416516f8fd859cb27ac75cb..9ba3b18d1d7cee011f43b4796afdb6c1966577e4 100644 (file)
@@ -341,6 +341,12 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
                        ]);
                        $table->setPrimaryKey(['id']);
                        $table->addUniqueIndex(['principaluri', 'uri'], 'calsub_index');
+               } else {
+                       $table = $schema->getTable('calendarsubscriptions');
+                       $table->changeColumn('lastmodified', [
+                               'notnull' => false,
+                               'unsigned' => true,
+                       ]);
                }
 
                if (!$schema->hasTable('schedulingobjects')) {
index d3aa630d53285fa806bdf6f22cf4032ad817807b..934a9e34783efd78a7e3877896aefdb5da68e062 100644 (file)
@@ -121,6 +121,12 @@ class Version1011Date20200630192246 extends SimpleMigrationStep {
                        $table->setPrimaryKey(['config_id']);
                        $table->addIndex(['mount_id'], 'config_mount');
                        $table->addUniqueIndex(['mount_id', 'key'], 'config_mount_key');
+               } else {
+                       $table = $schema->getTable('external_config');
+                       $table->changeColumn('value', [
+                               'notnull' => false,
+                               'length' => 4096,
+                       ]);
                }
 
                if (!$schema->hasTable('external_options')) {