r66015 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66014‎ | r66015 | r66016 >
Date:14:00, 7 May 2010
Author:daniel
Status:deferred
Tags:
Comment:
fix key name conflict in origin table
Modified paths:
  • /trunk/WikiWord/WikiWord/src/main/java/de/brightbyte/wikiword/schema/GlobalConceptStoreSchema.java (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWord/src/main/java/de/brightbyte/wikiword/schema/GlobalConceptStoreSchema.java
@@ -79,7 +79,7 @@
8080 originTable.addField( new DatabaseField(this, "lang_bit", "INT", null, true, null ) );
8181 originTable.addKey( new DatabaseKey(this, KeyType.PRIMARY, "lang_concept", new String[] {"lang", "local_concept"}) );
8282 originTable.addKey( new DatabaseKey(this, KeyType.UNIQUE, "lang_name", new String[] {"lang", "local_concept_name"}) );
83 - originTable.addKey( new DatabaseKey(this, KeyType.UNIQUE, "lang_name", new String[] {"global_concept", "lang"}) );
 83+ originTable.addKey( new DatabaseKey(this, KeyType.UNIQUE, "concept_lang", new String[] {"global_concept", "lang"}) );
8484 addTable(originTable);
8585
8686 /*

Status & tagging log