Remove unique keys on currency and MeasurementUnit

This caused problems on older MySQL versions.
This commit is contained in:
Jan Böhmer 2019-08-14 00:02:41 +02:00
parent cfa807c621
commit e274d6aa9e
3 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ class MeasurementUnit extends StructuralDBElement
/**
* @var string The unit symbol that should be used for the Unit. This could be something like "", g (for gramms)
* or m (for meters).
* @ORM\Column(type="string", name="unit", unique=true)
* @ORM\Column(type="string", name="unit")
*/
protected $unit;

View file

@ -49,7 +49,7 @@ class Currency extends StructuralDBElement
/**
* @var string The 3 letter ISO code of the currency.
* @ORM\Column(type="string", unique=true)
* @ORM\Column(type="string")
* @Assert\Currency()
*/
protected $iso_code;