Skip to content

Commit

Permalink
Added default DB value for position column
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Hermanek committed Oct 2, 2024
1 parent 29cd3d1 commit 31f76fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Traits/PositionAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait PositionAwareTrait
/**
* Used for ordering of entities used in lists.
*/
#[ORM\Column(type: Types::SMALLINT)]
#[ORM\Column(type: Types::SMALLINT, options: ['default' => 0])]
#[Serialize]
protected int $position = 0;

Expand Down

0 comments on commit 31f76fb

Please sign in to comment.