Skip to content

Commit

Permalink
Not nullable is default for scalar fields
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Jul 5, 2024
1 parent 92342ec commit 2b5abdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Model/Traits/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ trait Log
#[ORM\Column(type: 'smallint')]
private int $priority;

#[ORM\Column(type: 'string', length: 5000, nullable: false)]
#[ORM\Column(type: 'string', length: 5000)]
private string $message = '';

#[ORM\Column(type: 'string', length: 500, nullable: false)]
#[ORM\Column(type: 'string', length: 500)]
private string $referer = '';

#[ORM\Column(type: 'string', length: 1000, nullable: false)]
#[ORM\Column(type: 'string', length: 1000)]
private string $request = '';

#[ORM\Column(type: 'string', length: 40, nullable: false)]
#[ORM\Column(type: 'string', length: 40)]
private string $ip = '';

/**
Expand Down

0 comments on commit 2b5abdb

Please sign in to comment.