Create Mount IDs as BigInt by default

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-03-03 13:12:58 +01:00
parent 7961a0b446
commit 79dcd34a07
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
3 changed files with 7 additions and 4 deletions

View File

@ -445,7 +445,6 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
$table->addIndex(['objectid'], 'calendarobject_index'); $table->addIndex(['objectid'], 'calendarobject_index');
$table->addIndex(['name'], 'calendarobject_name_index'); $table->addIndex(['name'], 'calendarobject_name_index');
$table->addIndex(['value'], 'calendarobject_value_index'); $table->addIndex(['value'], 'calendarobject_value_index');
$table->addIndex(['calendarid', 'calendartype'], 'calendarobject_calid_index');
} }
if (!$schema->hasTable('dav_shares')) { if (!$schema->hasTable('dav_shares')) {

View File

@ -92,6 +92,7 @@ class Version1006Date20180628111625 extends SimpleMigrationStep {
$calendarObjectsPropsTable->addIndex(['objectid', 'calendartype'], 'calendarobject_index'); $calendarObjectsPropsTable->addIndex(['objectid', 'calendartype'], 'calendarobject_index');
$calendarObjectsPropsTable->addIndex(['name', 'calendartype'], 'calendarobject_name_index'); $calendarObjectsPropsTable->addIndex(['name', 'calendartype'], 'calendarobject_name_index');
$calendarObjectsPropsTable->addIndex(['value', 'calendartype'], 'calendarobject_value_index'); $calendarObjectsPropsTable->addIndex(['value', 'calendartype'], 'calendarobject_value_index');
$calendarObjectsPropsTable->addIndex(['calendarid', 'calendartype'], 'calendarobject_calid_index');
} }
if ($schema->hasTable('calendarsubscriptions')) { if ($schema->hasTable('calendarsubscriptions')) {

View File

@ -94,11 +94,13 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'notnull' => true, 'notnull' => true,
'length' => 4, 'length' => 4,
]); ]);
$table->addColumn('storage_id', 'integer', [ $table->addColumn('storage_id', Type::BIGINT, [
'notnull' => true, 'notnull' => true,
'length' => 20,
]); ]);
$table->addColumn('root_id', 'integer', [ $table->addColumn('root_id', Type::BIGINT, [
'notnull' => true, 'notnull' => true,
'length' => 20,
]); ]);
$table->addColumn('user_id', 'string', [ $table->addColumn('user_id', 'string', [
'notnull' => true, 'notnull' => true,
@ -108,8 +110,9 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'notnull' => true, 'notnull' => true,
'length' => 4000, 'length' => 4000,
]); ]);
$table->addColumn('mount_id', 'integer', [ $table->addColumn('mount_id', Type::BIGINT, [
'notnull' => false, 'notnull' => false,
'length' => 20,
]); ]);
$table->setPrimaryKey(['id']); $table->setPrimaryKey(['id']);
$table->addIndex(['user_id'], 'mounts_user_index'); $table->addIndex(['user_id'], 'mounts_user_index');