]> source.dussan.org Git - nextcloud-server.git/commitdiff
Create Mount IDs as BigInt by default 19761/head
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 3 Mar 2020 12:12:58 +0000 (13:12 +0100)
committerGeorg Ehrke <developer@georgehrke.com>
Tue, 3 Mar 2020 13:17:22 +0000 (14:17 +0100)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/dav/lib/Migration/Version1004Date20170825134824.php
apps/dav/lib/Migration/Version1006Date20180628111625.php
core/Migrations/Version13000Date20170718121200.php

index 10e6028ba1a10a2c5d4ace9221d3d67f4b776dcc..d25e387e32e7dc0cbb70b088afa21b9b918972a8 100644 (file)
@@ -445,7 +445,6 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
                        $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')) {
index a09bb070d88a6ae427358927925a9c113b6f74e0..08a5951d8df520beed8834cc46ad1260d143a72a 100644 (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')) {
index e9f376a7e424852ecdfa523eb1c929e310d083aa..8fcce961542245168bb50146662344308a71233f 100644 (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');