Use user_properties.up_value with string in database query

The field up_value is a varbinary and should be provided as string,
not all rdbms implicit converts int/strings

Change-Id: Ideb28ad9cc475dad84d0f7dc45a0f3c286f4487c
This commit is contained in:
Umherirrender 2024-05-02 23:25:20 +02:00
parent 687284939c
commit 186e79d41b

View file

@ -102,7 +102,7 @@ class NewTopicOptOutActiveUsers extends Maintenance {
->where( [
'up_user' => $userId,
'up_property' => 'discussiontools-betaenable',
'up_value' => 1,
'up_value' => '1',
] )
->field( '1' )
->fetchField();
@ -134,7 +134,7 @@ class NewTopicOptOutActiveUsers extends Maintenance {
->row( [
'up_user' => $userId,
'up_property' => 'discussiontools-' . HookUtils::NEWTOPICTOOL,
'up_value' => 0,
'up_value' => '0',
] )
->caller( __METHOD__ )
->execute();