summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-04-07 14:52:57 +0200
committerGitHub <noreply@github.com>2022-04-07 14:52:57 +0200
commit8b53b6dc9ef15c37a8c05d4ea2afee28506f0383 (patch)
treedf50f3c1fb18618e2356db2c9c88fdd4ab813181 /apps
parent0e29dc8c76a379b7f34f63303ae831e52bb62801 (diff)
parent82c33be744b1e9d85c780bce277c783c6d38e7bf (diff)
downloadnextcloud-server-8b53b6dc9ef15c37a8c05d4ea2afee28506f0383.tar.gz
nextcloud-server-8b53b6dc9ef15c37a8c05d4ea2afee28506f0383.zip
Merge pull request #31872 from nextcloud/fix/oracle-contrainst
Ensure schema change before checking OracleConstraints
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Migration/Version1120Date20210917155206.php2
-rw-r--r--apps/user_ldap/lib/Migration/Version1141Date20220323143801.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php b/apps/user_ldap/lib/Migration/Version1120Date20210917155206.php
index bca390441d7..b7a9b81d6a0 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()->gt($qb->func()->octetLength('owncloud_name'), '64', IQueryBuilder::PARAM_INT));
+ ->where($qb->expr()->gt($qb->func()->octetLength('owncloud_name'), $qb->createNamedParameter('64'), IQueryBuilder::PARAM_INT));
return $qb;
}
diff --git a/apps/user_ldap/lib/Migration/Version1141Date20220323143801.php b/apps/user_ldap/lib/Migration/Version1141Date20220323143801.php
index be496d9215e..10043371aae 100644
--- a/apps/user_ldap/lib/Migration/Version1141Date20220323143801.php
+++ b/apps/user_ldap/lib/Migration/Version1141Date20220323143801.php
@@ -51,7 +51,7 @@ class Version1141Date20220323143801 extends SimpleMigrationStep {
$qb = $this->dbc->getQueryBuilder();
$qb->select('ldap_dn')
->from($tableName)
- ->where($qb->expr()->gt($qb->func()->octetLength('ldap_dn'), '4000', IQueryBuilder::PARAM_INT));
+ ->where($qb->expr()->gt($qb->func()->octetLength('ldap_dn'), $qb->createNamedParameter('4000'), IQueryBuilder::PARAM_INT));
$dnsTooLong = [];
$result = $qb->executeQuery();