Skip to content

Commit cd21caf

Browse files
authored
Merge pull request #34067 from nextcloud/timm2k-patch-1
Convert file_metadata.id from int(11) to bigint(20)
2 parents 381eb04 + 14d3b6f commit cd21caf

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

apps/settings/lib/Controller/CheckSetupController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ protected function hasBigIntConversionPendingColumns(): array {
770770
'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'],
771771
'filecache_extended' => ['fileid'],
772772
'file_locks' => ['id'],
773+
'file_metadata' => ['id'],
773774
'jobs' => ['id'],
774775
'mimetypes' => ['id'],
775776
'mounts' => ['id', 'storage_id', 'root_id', 'mount_id'],

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
'filecache_extended' => ['fileid'],
6868
'files_trash' => ['auto_id'],
6969
'file_locks' => ['id'],
70+
'file_metadata' => ['id'],
7071
'jobs' => ['id'],
7172
'mimetypes' => ['id'],
7273
'mounts' => ['id', 'storage_id', 'root_id', 'mount_id'],

core/Migrations/Version24000Date20220404230027.php

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

4646
if (!$schema->hasTable('file_metadata')) {
4747
$table = $schema->createTable('file_metadata');
48-
$table->addColumn('id', Types::INTEGER, [
48+
$table->addColumn('id', Types::BIGINT, [
4949
'notnull' => true,
5050
]);
5151
$table->addColumn('group_name', Types::STRING, [

0 commit comments

Comments
 (0)