Browse Source
Make oc_files_trash.auto_id a bigint
Adjusted migration.
Added to occ command to update existing tables.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
pull/24832/head
Vincent Petry
6 years ago
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
2 changed files with
2 additions and
2 deletions
-
apps/files_trashbin/lib/Migration/Version1010Date20200630192639.php
-
core/Command/Db/ConvertFilecacheBigInt.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, |
|
|
|
|
|
|
|
@ -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'], |
|
|
|
|