Skip to content

Commit e5ae0df

Browse files
authored
Merge pull request #6497 from LibreSign/fix/recretate-query-build-inside-loop
fix: recreate query build inside loop
2 parents 8937a15 + fc3d09a commit e5ae0df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Migration/Version16001Date20251227000000.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
7777

7878
// Update all files with normalized names
7979
if (!empty($filesToUpdate)) {
80-
$updateQb = $this->connection->getQueryBuilder();
81-
8280
foreach ($filesToUpdate as $file) {
81+
$updateQb = $this->connection->getQueryBuilder();
82+
8383
$updateQb->update('libresign_file')
8484
->set('name', $updateQb->createNamedParameter($file['newName']))
8585
->where($updateQb->expr()->eq('id', $updateQb->createNamedParameter($file['id'], \OCP\DB\Types::INTEGER)))

0 commit comments

Comments
 (0)