only delete specified config

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2020-11-06 13:01:37 +01:00
parent 8547934e20
commit 4104416e81
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ class Helper {
$query = $this->connection->getQueryBuilder();
$query->delete('appconfig')
->where($query->expr()->eq('appid', $query->createNamedParameter('user_ldap')))
->andWhere($query->expr()->like('configkey', $query->createNamedParameter((string)$prefix . '%')))
->andWhere($query->expr()->notIn('configkey', $query->createNamedParameter([
'enabled',
'installed_version',