diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-03-29 09:38:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 09:38:21 +0200 |
commit | 4a4f250a2b733f915e8b465bc995ea8ac18a8fbc (patch) | |
tree | ef9ed30f7cfb7caf803bcc9a67f60ff9ba16a04d /apps | |
parent | bdfc6563ab1b4b61102afd29073927a0c25d1fd4 (diff) | |
parent | 7407a324d94afa7009a4efa3a8fbe71734e6ea85 (diff) | |
download | nextcloud-server-4a4f250a2b733f915e8b465bc995ea8ac18a8fbc.tar.gz nextcloud-server-4a4f250a2b733f915e8b465bc995ea8ac18a8fbc.zip |
Merge pull request #31696 from nextcloud/fix/user_ldap-fix-migration-lengthcheck-oracle
Use getLengthExpression to measure field length instead of like
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Migration/Version1120Date20210917155206.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php index d2b440c4dfe..bca390441d7 100644 --- a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php +++ b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php @@ -129,7 +129,7 @@ class Version1120Date20210917155206 extends SimpleMigrationStep { $qb = $this->dbc->getQueryBuilder(); $qb->select('owncloud_name', 'directory_uuid') ->from($table) - ->where($qb->expr()->like('owncloud_name', $qb->createNamedParameter(str_repeat('_', 65) . '%'), Types::STRING)); + ->where($qb->expr()->gt($qb->func()->octetLength('owncloud_name'), '64', IQueryBuilder::PARAM_INT)); return $qb; } |