Skip to content

Commit

Permalink
Merge pull request #19761 from nextcloud/bugfix/19658/add_missing_ind…
Browse files Browse the repository at this point in the history
…ex_to_original_migration

Add missing index to original migration
  • Loading branch information
rullzer authored Apr 6, 2020
2 parents d258854 + 79dcd34 commit 9a4193f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/dav/lib/Migration/Version1004Date20170825134824.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'unsigned' => true,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['principaluri'], 'schedulobj_principuri_index');
}

if (!$schema->hasTable('cards_properties')) {
Expand Down
1 change: 1 addition & 0 deletions apps/dav/lib/Migration/Version1006Date20180628111625.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
$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')) {
Expand Down
9 changes: 6 additions & 3 deletions core/Migrations/Version13000Date20170718121200.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'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,
Expand All @@ -108,8 +110,9 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'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');
Expand Down

0 comments on commit 9a4193f

Please sign in to comment.