@@ -148,8 +148,8 @@ public function send(string $body, array $headers, int $delay = 0): string
148
148
null ,
149
149
null ,
150
150
null ,
151
- Types::DATETIME_MUTABLE ,
152
- Types::DATETIME_MUTABLE ,
151
+ Types::DATETIME_IMMUTABLE ,
152
+ Types::DATETIME_IMMUTABLE ,
153
153
]);
154
154
155
155
return $ this ->driverConnection ->lastInsertId ();
@@ -226,7 +226,7 @@ public function get(): ?array
226
226
$ now ,
227
227
$ doctrineEnvelope ['id ' ],
228
228
], [
229
- Types::DATETIME_MUTABLE ,
229
+ Types::DATETIME_IMMUTABLE ,
230
230
]);
231
231
232
232
$ this ->driverConnection ->commit ();
@@ -354,8 +354,8 @@ private function createAvailableMessagesQueryBuilder(): QueryBuilder
354
354
$ now ,
355
355
$ this ->configuration ['queue_name ' ],
356
356
], [
357
- Types::DATETIME_MUTABLE ,
358
- Types::DATETIME_MUTABLE ,
357
+ Types::DATETIME_IMMUTABLE ,
358
+ Types::DATETIME_IMMUTABLE ,
359
359
]);
360
360
}
361
361
@@ -449,11 +449,11 @@ private function addTableToSchema(Schema $schema): void
449
449
$ table ->addColumn ('queue_name ' , Types::STRING )
450
450
->setLength (190 ) // MySQ
8EFD
L 5.6 only supports 191 characters on an indexed column in utf8mb4 mode
451
451
->setNotnull (true );
452
- $ table ->addColumn ('created_at ' , Types::DATETIME_MUTABLE )
452
+ $ table ->addColumn ('created_at ' , Types::DATETIME_IMMUTABLE )
453
453
->setNotnull (true );
454
- $ table ->addColumn ('available_at ' , Types::DATETIME_MUTABLE )
454
+ $ table ->addColumn ('available_at ' , Types::DATETIME_IMMUTABLE )
455
455
->setNotnull (true );
456
- $ table ->addColumn ('delivered_at ' , Types::DATETIME_MUTABLE )
456
+ $ table ->addColumn ('delivered_at ' , Types::DATETIME_IMMUTABLE )
457
457
->setNotnull (false );
458
458
$ table ->setPrimaryKey (['id ' ]);
459
459
$ table ->addIndex (['queue_name ' ]);
0 commit comments