Skip to content

Commit

Permalink
store times as numerics, not floats
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavies committed Oct 4, 2022
1 parent ae900bf commit 469c5b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Storage/Doctrine/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ private function addTableToSchema(Schema $schema): void
$table->addColumn('id', Types::INTEGER)->setNotnull(true)->setAutoincrement(true);
$table->addColumn('message_uid', Types::GUID)->setNotnull(true);
$table->addColumn('class', Types::STRING)->setLength(255)->setNotnull(true);
$table->addColumn('dispatched_at', Types::FLOAT)->setNotnull(true);
$table->addColumn('waiting_time', Types::FLOAT)->setNotnull(false);
$table->addColumn('handling_time', Types::FLOAT)->setNotnull(false);
$table->addColumn('failing_time', Types::FLOAT)->setNotnull(false);
$table->addColumn('dispatched_at', Types::DECIMAL, ['precision' => 16, 'scale' => 6])->setNotnull(true);
$table->addColumn('waiting_time', Types::DECIMAL, ['precision' => 16, 'scale' => 6])->setNotnull(false);
$table->addColumn('handling_time', Types::DECIMAL, ['precision' => 16, 'scale' => 6])->setNotnull(false);
$table->addColumn('failing_time', Types::DECIMAL, ['precision' => 16, 'scale' => 6])->setNotnull(false);
$table->addColumn('receiver_name', Types::STRING)->setLength(255)->setNotnull(false);
$table->addIndex(['dispatched_at']);
$table->addIndex(['class']);
Expand Down

0 comments on commit 469c5b4

Please sign in to comment.