commit 458962c5e8906b1efb6f5531bd51c5af17e06490 parent f5b7e73d63aa071ae54bfb0fce80c456d2363b63 Author: Timo A. Hummel <timo@netraver.de> Date: Wed, 25 May 2011 23:02:32 +0200 Added unique key to storage locations and footprints Diffstat:
M | src/de/RaumZeitLabor/PartDB2/Footprint/Footprint.php | | | 2 | +- |
M | src/de/RaumZeitLabor/PartDB2/StorageLocation/StorageLocation.php | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/de/RaumZeitLabor/PartDB2/Footprint/Footprint.php b/src/de/RaumZeitLabor/PartDB2/Footprint/Footprint.php @@ -10,7 +10,7 @@ class Footprint { */ private $id; - /** @Column(length=64) */ + /** @Column(length=64,unique=true) */ private $footprint; public function setFootprint ($footprint) { diff --git a/src/de/RaumZeitLabor/PartDB2/StorageLocation/StorageLocation.php b/src/de/RaumZeitLabor/PartDB2/StorageLocation/StorageLocation.php @@ -13,7 +13,7 @@ class StorageLocation { private $id; /** - * @Column + * @Column(type="string",unique=true) */ private $name;