diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-10-29 15:27:22 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-09 12:13:33 +0100 |
commit | 0d42d996d117b295f881ece6d55e59910e5d8f1b (patch) | |
tree | a048619789370db18da04e9d2a30662e1497e7b9 | |
parent | b9836398ccddc8ec8212eb97d917dfb9b7240546 (diff) | |
download | nextcloud-server-0d42d996d117b295f881ece6d55e59910e5d8f1b.tar.gz nextcloud-server-0d42d996d117b295f881ece6d55e59910e5d8f1b.zip |
Adjust further columns
- calendarsubscriptions.lastmodified -> not null
- external_config.value -> allow null
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
-rw-r--r-- | apps/dav/lib/Migration/Version1004Date20170825134824.php | 6 | ||||
-rw-r--r-- | apps/files_external/lib/Migration/Version1011Date20200630192246.php | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/apps/dav/lib/Migration/Version1004Date20170825134824.php b/apps/dav/lib/Migration/Version1004Date20170825134824.php index 53c1ebe299c..9ba3b18d1d7 100644 --- a/apps/dav/lib/Migration/Version1004Date20170825134824.php +++ b/apps/dav/lib/Migration/Version1004Date20170825134824.php @@ -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')) { diff --git a/apps/files_external/lib/Migration/Version1011Date20200630192246.php b/apps/files_external/lib/Migration/Version1011Date20200630192246.php index d3aa630d532..934a9e34783 100644 --- a/apps/files_external/lib/Migration/Version1011Date20200630192246.php +++ b/apps/files_external/lib/Migration/Version1011Date20200630192246.php @@ -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')) { |