Adjust calendars.components to 64 chars

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Vincent Petry 2020-10-29 15:12:21 +01:00 committed by Julius Härtl
parent ab40a7c585
commit 1fef301334
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 6 additions and 0 deletions

View 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')) {