$table->addIndex(['objectid'], 'calendarobject_index');
$table->addIndex(['name'], 'calendarobject_name_index');
$table->addIndex(['value'], 'calendarobject_value_index');
- $table->addIndex(['calendarid', 'calendartype'], 'calendarobject_calid_index');
}
if (!$schema->hasTable('dav_shares')) {
$calendarObjectsPropsTable->addIndex(['objectid', 'calendartype'], 'calendarobject_index');
$calendarObjectsPropsTable->addIndex(['name', 'calendartype'], 'calendarobject_name_index');
$calendarObjectsPropsTable->addIndex(['value', 'calendartype'], 'calendarobject_value_index');
+ $calendarObjectsPropsTable->addIndex(['calendarid', 'calendartype'], 'calendarobject_calid_index');
}
if ($schema->hasTable('calendarsubscriptions')) {
'notnull' => true,
'length' => 4,
]);
- $table->addColumn('storage_id', 'integer', [
+ $table->addColumn('storage_id', Type::BIGINT, [
'notnull' => true,
+ 'length' => 20,
]);
- $table->addColumn('root_id', 'integer', [
+ $table->addColumn('root_id', Type::BIGINT, [
'notnull' => true,
+ 'length' => 20,
]);
$table->addColumn('user_id', 'string', [
'notnull' => true,
'notnull' => true,
'length' => 4000,
]);
- $table->addColumn('mount_id', 'integer', [
+ $table->addColumn('mount_id', Type::BIGINT, [
'notnull' => false,
+ 'length' => 20,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['user_id'], 'mounts_user_index');