Skip to content

Commit

Permalink
fix missing default values for not nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed May 3, 2023
1 parent 1d33e0d commit bb39998
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Store/MultiTableStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,11 @@ private function addAggregateTableToSchema(Schema $schema, string $tableName): v
$table->addColumn('recorded_on', Types::DATETIMETZ_IMMUTABLE)
->setNotnull(false);
$table->addColumn('new_stream_start', Types::BOOLEAN)
->setNotnull(true);
->setNotnull(true)
->setDefault(false);
$table->addColumn('archived', Types::BOOLEAN)
->setNotnull(true);
->setNotnull(true)
->setDefault(false);
$table->addColumn('custom_headers', Types::JSON)
->setNotnull(true);

Expand Down
6 changes: 4 additions & 2 deletions src/Store/SingleTableStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ public function configureSchema(Schema $schema, Connection $connection): void
$table->addColumn('recorded_on', Types::DATETIMETZ_IMMUTABLE)
->setNotnull(false);
$table->addColumn('new_stream_start', Types::BOOLEAN)
->setNotnull(true);
->setNotnull(true)
->setDefault(false);
$table->addColumn('archived', Types::BOOLEAN)
->setNotnull(true);
->setNotnull(true)
->setDefault(false);
$table->addColumn('custom_headers', Types::JSON)
->setNotnull(true);

Expand Down

0 comments on commit bb39998

Please sign in to comment.