mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-03 06:54:34 +02:00
Added migration from old Database to new database.
This commit is contained in:
parent
42c8222e35
commit
2f39ac90a2
19 changed files with 391 additions and 31 deletions
|
@ -42,12 +42,17 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
* Class Part.
|
||||
*
|
||||
* @ORM\Entity(repositoryClass="App\Repository\PartRepository")
|
||||
* @ORM\Table("parts")
|
||||
* @ORM\Table("`parts`")
|
||||
*/
|
||||
class Part extends AttachmentContainingDBElement
|
||||
{
|
||||
public const INSTOCK_UNKNOWN = -2;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="PartAttachment", mappedBy="element")
|
||||
*/
|
||||
protected $attachments;
|
||||
|
||||
/**
|
||||
* @var Category
|
||||
* @ORM\ManyToOne(targetEntity="Category", inversedBy="parts")
|
||||
|
@ -138,7 +143,7 @@ class Part extends AttachmentContainingDBElement
|
|||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(type="string")
|
||||
* @ORM\Column(type="text")
|
||||
*
|
||||
* @ColumnSecurity(prefix="description")
|
||||
*/
|
||||
|
@ -164,7 +169,7 @@ class Part extends AttachmentContainingDBElement
|
|||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(type="string")
|
||||
* @ORM\Column(type="text")
|
||||
* @ColumnSecurity(prefix="comment")
|
||||
*/
|
||||
protected $comment = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue