mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-04 07:24:34 +02:00
Remove unique keys on currency and MeasurementUnit
This caused problems on older MySQL versions.
This commit is contained in:
parent
cfa807c621
commit
e274d6aa9e
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue