diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-12-28 10:43:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 10:43:16 +0100 |
commit | 7bca3daa8c11151042c6622366b695cd1fbd3fa6 (patch) | |
tree | c77a05812dec24324857e4a2c9cab5d660cf4261 | |
parent | 943d95efbe5119a028c1fbef2e891f4e8db8a482 (diff) | |
parent | bdbec28a8fe283edfc3368cc420aec02f19e1d0a (diff) | |
download | nextcloud-server-7bca3daa8c11151042c6622366b695cd1fbd3fa6.tar.gz nextcloud-server-7bca3daa8c11151042c6622366b695cd1fbd3fa6.zip |
Merge pull request #24832 from nextcloud/enh/24813/trash-autoid-bigint
Make oc_files_trash.auto_id a bigint
-rw-r--r-- | apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php | 3 | ||||
-rw-r--r-- | core/Command/Db/ConvertFilecacheBigInt.php | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php b/apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php index 4b3f2d9f795..e5443a1f79c 100644 --- a/apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php +++ b/apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php @@ -45,10 +45,9 @@ class Version1010Date20200630192639 extends SimpleMigrationStep { if (!$schema->hasTable('files_trash')) { $table = $schema->createTable('files_trash'); - $table->addColumn('auto_id', Types::INTEGER, [ + $table->addColumn('auto_id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, - 'length' => 4, ]); $table->addColumn('id', Types::STRING, [ 'notnull' => true, diff --git a/core/Command/Db/ConvertFilecacheBigInt.php b/core/Command/Db/ConvertFilecacheBigInt.php index 4955dd12f81..d607b8b35a7 100644 --- a/core/Command/Db/ConvertFilecacheBigInt.php +++ b/core/Command/Db/ConvertFilecacheBigInt.php @@ -69,6 +69,7 @@ class ConvertFilecacheBigInt extends Command { 'federated_reshares' => ['share_id'], 'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'], 'filecache_extended' => ['fileid'], + 'files_trash' => ['auto_id'], 'file_locks' => ['id'], 'jobs' => ['id'], 'mimetypes' => ['id'], |