Merge pull request #19761 from nextcloud/bugfix/19658/add_missing_index_to_original_migration

Add missing index to original migration
This commit is contained in:
Roeland Jago Douma 2020-04-06 09:44:34 +02:00 committed by GitHub
commit 9a4193f557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -369,6 +369,7 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
'unsigned' => true,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['principaluri'], 'schedulobj_principuri_index');
}
if (!$schema->hasTable('cards_properties')) {

View File

@ -92,6 +92,7 @@ class Version1006Date20180628111625 extends SimpleMigrationStep {
$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')) {

View File

@ -94,11 +94,13 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'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,
@ -108,8 +110,9 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'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');