@@ -56,7 +56,7 @@ public function fetchMessage(array $queues = []): ?Message
56
56
->andWhere ('exact_time <= :nowTime ' )
57
57
->addOrderBy ('priority ' , 'asc ' )
58
58
->addOrderBy ('created_at ' , 'asc ' )
59
- ->setParameter ('redeliveredAt ' , (new DateTimeImmutable ('now ' ))->format ('Y-m-d H:i:s ' ), Types::DATETIME_IMMUTABLE )
59
+ ->setParameter ('redeliveredAt ' , (new DateTimeImmutable ('now ' ))->format ('Y-m-d H:i:s ' ), Types::STRING )
60
60
->setParameter ('statuses ' , [Status::NEW , Status::REDELIVERED ], Connection::PARAM_STR_ARRAY )
61
61
->setParameter ('nowTime ' , $ nowTime , Types::INTEGER )
62
62
->setMaxResults (1 );
@@ -108,8 +108,8 @@ public function send(Message $message): void
108
108
$ rowsAffected = $ this ->connection ->insert (DoctrineDbalTableCreator::getTableName (), $ dataMessage , [
109
109
'id ' => Types::GUID ,
110
110
'status ' => Types::STRING ,
111
- 'created_at ' => Types::DATETIME_IMMUTABLE ,
112
- 'redelivered_at ' => Types::DATETIME_IMMUTABLE ,
111
+ 'created_at ' => Types::STRING ,
112
+ 'redelivered_at ' => Types::STRING ,
113
113
'attempts ' => Types::SMALLINT ,
114
114
'queue ' => Types::STRING ,
115
115
'event ' => Types::STRING ,
0 commit comments