mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Created database migration which ensures no nulls are present
This commit is contained in:
@@ -29,9 +29,9 @@ class ShortUrl extends AbstractEntity
|
||||
private Collection $visits;
|
||||
/** @var Collection|Tag[] */
|
||||
private Collection $tags;
|
||||
private ?Chronos $validSince;
|
||||
private ?Chronos $validUntil;
|
||||
private ?int $maxVisits;
|
||||
private ?Chronos $validSince = null;
|
||||
private ?Chronos $validUntil = null;
|
||||
private ?int $maxVisits = null;
|
||||
private ?Domain $domain;
|
||||
private bool $customSlugWasProvided;
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ use Shlinkio\Shlink\Core\Visit\Model\VisitLocationInterface;
|
||||
|
||||
class Visit extends AbstractEntity implements JsonSerializable
|
||||
{
|
||||
private string $referer = '';
|
||||
private string $referer;
|
||||
private Chronos $date;
|
||||
private ?string $remoteAddr = null;
|
||||
private string $userAgent = '';
|
||||
private string $userAgent;
|
||||
private ShortUrl $shortUrl;
|
||||
private ?VisitLocation $visitLocation = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user