Added migrations for sqlite

This commit is contained in:
Jan Böhmer 2023-04-03 00:47:51 +02:00
parent 0feb9661df
commit 8e2f297839
5 changed files with 511 additions and 6 deletions

View file

@ -99,7 +99,7 @@ class Storelocation extends AbstractPartsContainingDBElement
/**
* @var bool If this is set to true, only parts lots, which are owned by the same user as the store location are allowed to be stored here.
* @ORM\Column(type="boolean")
* @ORM\Column(type="boolean", options={"default"=false})
*/
protected bool $part_owner_must_match = false;

View file

@ -88,7 +88,7 @@ class Project extends AbstractStructuralDBElement
protected bool $order_only_missing_parts = false;
/**
* @ORM\Column(type="text", nullable=false, columnDefinition="DEFAULT ''")
* @ORM\Column(type="text", nullable=false, options={"default" : ""})
* @Groups({"simple", "extended", "full"})
*/
protected string $description = '';

View file

@ -261,7 +261,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
/**
* @var DateTime the time until the password reset token is valid
* @ORM\Column(type="datetime", nullable=true, columnDefinition="DEFAULT NULL")
* @ORM\Column(type="datetime", nullable=true, options={"default": null})
*/
protected $pw_reset_expires;