Adjust calendars.components to 64 chars
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
2607ac3fb2
commit
b9836398cc
|
@ -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