summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2009-04-17 10:21:36 (EDT)
committerStefan Winkler2009-04-17 10:21:36 (EDT)
commit7bf7840093123f1830c2c8e7a3f8909f5c608c36 (patch)
tree92993cce636451f90ad63e5da57b04ec25f01563
parentfad39dd18f1216810627766baac8fdbfd3588228 (diff)
downloadcdo-7bf7840093123f1830c2c8e7a3f8909f5c608c36.zip
cdo-7bf7840093123f1830c2c8e7a3f8909f5c608c36.tar.gz
cdo-7bf7840093123f1830c2c8e7a3f8909f5c608c36.tar.bz2
[272692] [DB] Define primary key constraint for cdo_id in cdo_objects table
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272692
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ObjectTypeCache.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ObjectTypeCache.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ObjectTypeCache.java
index e5f3823..ba9cc01 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ObjectTypeCache.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ObjectTypeCache.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
* Stefan Winkler - https://bugs.eclipse.org/bugs/show_bug.cgi?id=259402
@@ -174,7 +174,7 @@ public class ObjectTypeCache extends Lifecycle implements IObjectTypeCache
table = schema.addTable(CDODBSchema.CDO_OBJECTS);
idField = table.addField(CDODBSchema.ATTRIBUTES_ID, DBType.BIGINT);
typeField = table.addField(CDODBSchema.ATTRIBUTES_CLASS, DBType.BIGINT);
- table.addIndex(IDBIndex.Type.PRIMARY_KEY, idField);
+ table.addIndex(IDBIndex.Type.UNIQUE, idField);
IDBAdapter dbAdapter = mappingStrategy.getStore().getDBAdapter();
dbAdapter.createTable(table, statement);