mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
executeQuery and executeStatement are 22+
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
f82c4d31ba
commit
670a2d57e3
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