]> source.dussan.org Git - nextcloud-server.git/commitdiff
Move columns to bigint
authorJulius Härtl <jus@bitgrid.net>
Fri, 20 Nov 2020 14:38:59 +0000 (15:38 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:10:58 +0000 (11:10 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/federatedfilesharing/lib/Migration/Version1010Date20200630191755.php
apps/files_sharing/lib/Migration/Version11300Date20201120141438.php
apps/settings/lib/Controller/CheckSetupController.php
core/Command/Db/ConvertFilecacheBigInt.php

index b8d498f32284c9bafe3e15ff0fdb400f977ac16b..7376c8d9e73195b1fa76e6b1f96cc2ad4de05f5f 100644 (file)
@@ -44,9 +44,8 @@ class Version1010Date20200630191755 extends SimpleMigrationStep {
 
                if (!$schema->hasTable('federated_reshares')) {
                        $table = $schema->createTable('federated_reshares');
-                       $table->addColumn('share_id', Types::INTEGER, [
+                       $table->addColumn('share_id', Types::BIGINT, [
                                'notnull' => true,
-                               'length' => 4,
                        ]);
                        $table->addColumn('remote_id', Types::STRING, [
                                'notnull' => true,
index 84c8721dec39bb16a439d369597b5399684f6abe..6183324982828465e7eefc067aacb7338099579a 100644 (file)
@@ -18,11 +18,11 @@ class Version11300Date20201120141438 extends SimpleMigrationStep {
 
                if (!$schema->hasTable('share_external')) {
                        $table = $schema->createTable('share_external');
-                       $table->addColumn('id', Types::INTEGER, [
+                       $table->addColumn('id', Types::BIGINT, [
                                'autoincrement' => true,
                                'notnull' => true,
                        ]);
-                       $table->addColumn('parent', Types::INTEGER, [
+                       $table->addColumn('parent', Types::BIGINT, [
                                'notnull' => false,
                                'default' => -1,
                        ]);
@@ -86,5 +86,4 @@ class Version11300Date20201120141438 extends SimpleMigrationStep {
 
                return $schema;
        }
-
 }
index 8a0536c29f0b88c216035829afd27f221579ae47..19d932ecc4665cfd805eef7e449b594d86b60f65 100644 (file)
@@ -630,12 +630,14 @@ Raw output
                        'activity_mq' => ['mail_id'],
                        'authtoken' => ['id'],
                        'bruteforce_attempts' => ['id'],
+                       'federated_reshares' => ['share_id'],
                        'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'],
                        'filecache_extended' => ['fileid'],
                        'file_locks' => ['id'],
                        'jobs' => ['id'],
                        'mimetypes' => ['id'],
                        'mounts' => ['id', 'storage_id', 'root_id', 'mount_id'],
+                       'share_external' => ['id', 'parent'],
                        'storages' => ['numeric_id'],
                ];
 
index 6b5b0dc9c82a0ddc9bdc68ab88a451b1fe4fb36b..6575d41d3bba2ef4f6e1ee88e2e9701e15a0c8ba 100644 (file)
@@ -64,12 +64,14 @@ class ConvertFilecacheBigInt extends Command {
                        'activity_mq' => ['mail_id'],
                        'authtoken' => ['id'],
                        'bruteforce_attempts' => ['id'],
+                       'federated_reshares' => ['share_id'],
                        'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'],
                        'filecache_extended' => ['fileid'],
                        'file_locks' => ['id'],
                        'jobs' => ['id'],
                        'mimetypes' => ['id'],
                        'mounts' => ['id', 'storage_id', 'root_id', 'mount_id'],
+                       'share_external' => ['id', 'parent'],
                        'storages' => ['numeric_id'],
                ];
        }