[Fusionforge-commits] r9409 - trunk/gforge/plugins/scmgit/db

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Apr 7 16:43:50 CEST 2010


Author: lolando
Date: 2010-04-07 16:43:50 +0200 (Wed, 07 Apr 2010)
New Revision: 9409

Modified:
   trunk/gforge/plugins/scmgit/db/scmgit-init.sql
Log:
Added unique constraint on plugin_scmgit_personal_repos

Modified: trunk/gforge/plugins/scmgit/db/scmgit-init.sql
===================================================================
--- trunk/gforge/plugins/scmgit/db/scmgit-init.sql	2010-04-07 14:43:39 UTC (rev 9408)
+++ trunk/gforge/plugins/scmgit/db/scmgit-init.sql	2010-04-07 14:43:50 UTC (rev 9409)
@@ -2,7 +2,8 @@
 	group_id int NOT NULL,
 	user_id int NOT NULL,
 	FOREIGN KEY (group_id) REFERENCES groups (group_id) ON DELETE CASCADE ON UPDATE CASCADE,
-	FOREIGN KEY (user_id) REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE
+	FOREIGN KEY (user_id) REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE,
+	CONSTRAINT plugin_scmgit_personal_repos_unique UNIQUE (group_id, user_id)
 ) ;
 
 CREATE INDEX plugin_scmgit_personal_repos_gid_idx ON plugin_scmgit_personal_repos (group_id) ;




More information about the Fusionforge-commits mailing list