mirror of
https://github.com/nextcloud/server.git
synced 2026-03-01 21:10:36 -05:00
Merge pull request #29074 from nextcloud/bug/noid/no-execute-query-in-21
[stable21] executeQuery and executeStatement are 22+
This commit is contained in:
commit
edad2526fb
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class Version1120Date20210917155206 extends SimpleMigrationStep {
|
|||
$q = $this->getSelectQuery($table);
|
||||
$u = $this->getUpdateQuery($table);
|
||||
|
||||
$r = $q->executeQuery();
|
||||
$r = $q->execute();
|
||||
while ($row = $r->fetch()) {
|
||||
$newId = hash('sha256', $row['owncloud_name'], false);
|
||||
if ($emitHooks) {
|
||||
|
|
@ -82,7 +82,7 @@ class Version1120Date20210917155206 extends SimpleMigrationStep {
|
|||
$u->setParameter('uuid', $row['directory_uuid']);
|
||||
$u->setParameter('newId', $newId);
|
||||
try {
|
||||
$u->executeStatement();
|
||||
$u->execute();
|
||||
if ($emitHooks) {
|
||||
$this->emitUnassign($row['owncloud_name'], false);
|
||||
$this->emitAssign($newId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue