Also set a token when it is null

Appearantly some rooms had null as a token in the past

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-01-22 10:32:43 +01:00
Родитель c572bad105
Коммит 9374a6ca2f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -79,7 +79,8 @@ class Version2000Date20171026140257 extends SimpleMigrationStep {
$query = $this->connection->getQueryBuilder();
$query->select('*')
->from('spreedme_rooms')
->where($query->expr()->emptyString('token'));
->where($query->expr()->emptyString('token'))
->orWhere($query->expr()->isNull('token'));
$result = $query->execute();
$output->startProgress();