Merge pull request #372 from eikek/fix-duplicate-equipments

Add unique constraint for equipment names
This commit is contained in:
mergify[bot] 2020-10-21 21:13:19 +00:00 committed by GitHub
commit 1fdbf8b469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,3 @@
ALTER TABLE "equipment"
ADD CONSTRAINT "equipment_cid_name_key"
UNIQUE ("cid", "name");

View File

@ -0,0 +1,3 @@
ALTER TABLE `equipment`
ADD CONSTRAINT `equipment_cid_name_key`
UNIQUE (`cid`, `name`);

View File

@ -0,0 +1,3 @@
ALTER TABLE "equipment"
ADD CONSTRAINT "equipment_cid_name_key"
UNIQUE ("cid", "name");