Adjust calendars.components to 64 chars
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
ab40a7c585
commit
1fef301334
|
@ -251,6 +251,12 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
|
||||||
]);
|
]);
|
||||||
$table->setPrimaryKey(['id']);
|
$table->setPrimaryKey(['id']);
|
||||||
$table->addUniqueIndex(['principaluri', 'uri'], 'calendars_index');
|
$table->addUniqueIndex(['principaluri', 'uri'], 'calendars_index');
|
||||||
|
} else {
|
||||||
|
$table = $schema->getTable('calendars');
|
||||||
|
$table->changeColumn('components', [
|
||||||
|
'notnull' => false,
|
||||||
|
'length' => 64,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$schema->hasTable('calendarchanges')) {
|
if (!$schema->hasTable('calendarchanges')) {
|
||||||
|
|
Loading…
Reference in New Issue