1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix migration

This commit is contained in:
Loic Blot 2018-11-10 17:02:46 +01:00
parent 2455493396
commit 13ba8b7620
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<description>An app to sync SMS with your cloud</description> <description>An app to sync SMS with your cloud</description>
<licence>agpl</licence> <licence>agpl</licence>
<author homepage="https://www.unix-experience.fr">Loic Blot</author> <author homepage="https://www.unix-experience.fr">Loic Blot</author>
<version>1.99.0</version> <version>1.99.1</version>
<category>multimedia</category> <category>multimedia</category>
<category>tools</category> <category>tools</category>
<dependencies> <dependencies>

View File

@ -84,7 +84,7 @@ class ConversationStateMapper extends Mapper {
$qb = $this->db->getQueryBuilder(); $qb = $this->db->getQueryBuilder();
$qb->select('user_id', 'datakey', 'datavalue') $qb->select('user_id', 'datakey', 'datavalue')
->from('ocsms_user_datas') ->from('ocsms_user_datas')
->where($qb->expr()->like('datakey', 'lastReadDate-%')); ->where($qb->expr()->like('datakey', $qb->createNamedParameter('lastReadDate-%')));
$result = $qb->execute(); $result = $qb->execute();
while($row = $result->fetch()) { while($row = $result->fetch()) {
@ -94,7 +94,7 @@ class ConversationStateMapper extends Mapper {
$qb = $this->db->getQueryBuilder(); $qb = $this->db->getQueryBuilder();
$qb->delete('ocsms_user_datas') $qb->delete('ocsms_user_datas')
->where($qb->expr()->like('datakey', 'lastReadDate-%')); ->where($qb->expr()->like('datakey', $qb->createNamedParameter('lastReadDate-%')));
$qb->execute(); $qb->execute();
} }
} }