Skip to content

Commit 530e637

Browse files
authored
Merge pull request #24853 from nextcloud/backport/24832/stable20
[stable20] Make oc_files_trash.auto_id a bigint
2 parents fc327ee + 558cf72 commit 530e637

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4545

4646
if (!$schema->hasTable('files_trash')) {
4747
$table = $schema->createTable('files_trash');
48-
$table->addColumn('auto_id', Types::INTEGER, [
48+
$table->addColumn('auto_id', Types::BIGINT, [
4949
'autoincrement' => true,
5050
'notnull' => true,
51-
'length' => 4,
5251
]);
5352
$table->addColumn('id', Types::STRING, [
5453
'notnull' => true,

core/Command/Db/ConvertFilecacheBigInt.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ protected function getColumnsByTable() {
6767
'federated_reshares' => ['share_id'],
6868
'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'],
6969
'filecache_extended' => ['fileid'],
70+
'files_trash' => ['auto_id'],
7071
'file_locks' => ['id'],
7172
'jobs' => ['id'],
7273
'mimetypes' => ['id'],

0 commit comments

Comments
 (0)