mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-29 05:00:08 +02:00
Added migrations for sqlite
This commit is contained in:
parent
0feb9661df
commit
8e2f297839
5 changed files with 511 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue