Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Use immutable dates in the storage when using Doctrine #50289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Messenger] Use immutable dates in the storage when using Doctrine
  • Loading branch information
nicolas-grekas committed May 10, 2023
commit d6563a108aaab56376adf3dc6fd48ce87b9e047c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ public function send(string $body, array $headers, int $delay = 0): string
null,
null,
null,
Types::DATETIME_MUTABLE,
Types::DATETIME_MUTABLE,
Types::DATETIME_IMMUTABLE,
Types::DATETIME_IMMUTABLE,
]);

return $this->driverConnection->lastInsertId();
Expand Down Expand Up @@ -226,7 +226,7 @@ public function get(): ?array
$now,
$doctrineEnvelope['id'],
], [
Types::DATETIME_MUTABLE,
Types::DATETIME_IMMUTABLE,
]);

$this->driverConnection->commit();
Expand Down Expand Up @@ -354,8 +354,8 @@ private function createAvailableMessagesQueryBuilder(): QueryBuilder
$now,
$this->configuration['queue_name'],
], [
Types::DATETIME_MUTABLE,
Types::DATETIME_MUTABLE,
Types::DATETIME_IMMUTABLE,
Types::DATETIME_IMMUTABLE,
]);
}

Expand Down Expand Up @@ -449,11 +449,11 @@ private function addTableToSchema(Schema $schema): void
$table->addColumn('queue_name', Types::STRING)
->setLength(190) // MySQL 5.6 only supports 191 characters on an indexed column in utf8mb4 mode
->setNotnull(true);
$table->addColumn('created_at', Types::DATETIME_MUTABLE)
$table->addColumn('created_at', Types::DATETIME_IMMUTABLE)
->setNotnull(true);
$table->addColumn('available_at', Types::DATETIME_MUTABLE)
$table->addColumn('available_at', Types::DATETIME_IMMUTABLE)
->setNotnull(true);
$table->addColumn('delivered_at', Types::DATETIME_MUTABLE)
$table->addColumn('delivered_at', Types::DATETIME_IMMUTABLE)
->setNotnull(false);
$table->setPrimaryKey(['id']);
$table->addIndex(['queue_name']);
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.