mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Use existing API
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
2baea68d7c
commit
7240843289
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ abstract class GroupMappingMigration extends SimpleMigrationStep {
|
|||
->from($sourceTable);
|
||||
|
||||
|
||||
$result = $query->executeQuery();
|
||||
$result = $query->execute();
|
||||
while ($row = $result->fetch()) {
|
||||
$insert
|
||||
->setParameter('ldap_dn', $row['ldap_dn'])
|
||||
|
|
@ -62,7 +62,7 @@ abstract class GroupMappingMigration extends SimpleMigrationStep {
|
|||
->setParameter('ldap_dn_hash', $row['ldap_dn_hash'])
|
||||
;
|
||||
|
||||
$insert->executeStatement();
|
||||
$insert->execute();
|
||||
}
|
||||
$result->closeCursor();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue