]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-6937: Adding constraint to persons_common's short id column.
authorRichard Millet <remillet@yahoo.com>
Tue, 12 Apr 2016 16:56:54 +0000 (09:56 -0700)
committerRichard Millet <remillet@yahoo.com>
Tue, 12 Apr 2016 16:56:54 +0000 (09:56 -0700)
3rdparty/nuxeo/nuxeo-server/6.0-HF21/config/vcsconfig.sql.txt
services/client/src/main/resources/collectionspace-client.properties

index 08080945125eba9dea76de8c65bd8b0f52d16253..577a639d9908436cf543bc646bf4137344cd3d50 100644 (file)
@@ -16,6 +16,18 @@ SELECT constraint_name FROM information_schema.constraint_column_usage WHERE tab
 #IF: emptyResult
 ALTER TABLE vocabularies_common add CONSTRAINT shortid_unique UNIQUE (shortidentifier);
 
+#
+# Add a unique constraint to the shortidentifier column of the persons_common table.
+#
+LOG.INFO Adding a unique constraint to the shortidentifier column of the persons_common table
+
+#TEST:
+SELECT constraint_name FROM information_schema.constraint_column_usage WHERE table_name = 'persons_common' AND constraint_name = 'shortid_unique';
+
+#IF: emptyResult
+ALTER TABLE persons_common add CONSTRAINT shortid_unique UNIQUE (shortidentifier);
+
+
 #
 # Add a unique constraint to the report 'name' column of the reports_common table.
 #
index 75cb8b86d83f3ff4143e77ab00055aad2fe391e8..d077dd6be879108ab694872fb370e96e02011b2b 100644 (file)
@@ -9,8 +9,8 @@ cspace.url=http://localhost:8180/cspace-services/
 cspace.ssl=false
 cspace.auth=true
 # default user
-cspace.user=admin@core.collectionspace.org
-#cspace.user=admin@testsci.collectionspace.org
+#cspace.user=admin@core.collectionspace.org
+cspace.user=admin@testsci.collectionspace.org
 cspace.password=Administrator
 # default tenant
 cspace.tenant=1