Skip to content

Commit

Permalink
Hotfix for postgres db backend (#145)
Browse files Browse the repository at this point in the history
Hotfix for Postgres user
  • Loading branch information
lennartdohmann authored Oct 4, 2024
1 parent 7f0d56f commit 9a989b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"require-dev": {
"nextcloud/ocp": "v30.0.0",
"psalm/phar": "5.26.1",
"nextcloud/coding-standard": "v1.2.3",
"phpunit/phpunit": "10.5.34",
"symfony/console": "6.4.11"
"nextcloud/coding-standard": "v1.3.1",
"phpunit/phpunit": "10.5.35",
"symfony/console": "6.4.12"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/DbFileMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function getPlatformSpecificCast(): string {
$cast = 'CAST(' . 'o.objectid' . ' AS UNSIGNED)';
} elseif ($platform === 'sqlite') {
$cast = 'CAST(' . 'o.objectid' . ' AS INTEGER)';
} elseif ($platform === 'postgresql') {
} elseif ($platform === 'postgres') {
$cast = 'CAST(' . 'o.objectid' . ' AS BIGINT)';
} else {
throw new Exception('Unsupported database platform: ' . $platform);
Expand Down

0 comments on commit 9a989b5

Please sign in to comment.