Merge pull request #24853 from nextcloud/backport/24832/stable20

[stable20] Make oc_files_trash.auto_id a bigint
This commit is contained in:
Julius Härtl 2020-12-28 12:40:20 +01:00 committed by GitHub
commit 530e637e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,9 @@ class Version1010Date20200630192639 extends SimpleMigrationStep {
if (!$schema->hasTable('files_trash')) { if (!$schema->hasTable('files_trash')) {
$table = $schema->createTable('files_trash'); $table = $schema->createTable('files_trash');
$table->addColumn('auto_id', Types::INTEGER, [ $table->addColumn('auto_id', Types::BIGINT, [
'autoincrement' => true, 'autoincrement' => true,
'notnull' => true, 'notnull' => true,
'length' => 4,
]); ]);
$table->addColumn('id', Types::STRING, [ $table->addColumn('id', Types::STRING, [
'notnull' => true, 'notnull' => true,

View File

@ -67,6 +67,7 @@ class ConvertFilecacheBigInt extends Command {
'federated_reshares' => ['share_id'], 'federated_reshares' => ['share_id'],
'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'], 'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'],
'filecache_extended' => ['fileid'], 'filecache_extended' => ['fileid'],
'files_trash' => ['auto_id'],
'file_locks' => ['id'], 'file_locks' => ['id'],
'jobs' => ['id'], 'jobs' => ['id'],
'mimetypes' => ['id'], 'mimetypes' => ['id'],