Added migration from old Database to new database.

This commit is contained in:
Jan Böhmer 2019-08-06 13:18:29 +02:00
parent 42c8222e35
commit 2f39ac90a2
19 changed files with 391 additions and 31 deletions

View file

@ -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 = '';