r25955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25954‎ | r25955 | r25956 >
Date:09:21, 20 September 2007
Author:proes
Status:old
Tags:
Comment:
Added lengths to KEYs
Modified paths:
  • /trunk/extensions/Wikidata/Database+scripts/Convenience/wikidataSourceTables.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/Database scripts/Convenience/wikidataSourceTables.sql
@@ -16,7 +16,7 @@
1717 `name` varchar(255) NOT NULL,
1818 `defined_meaning_id` int(11) NOT NULL,
1919 KEY `unversioned_meaning` (`defined_meaning_id`),
20 - KEY `unversioned_name` (`name`,`defined_meaning_id`)
 20+ KEY `unversioned_name` (`name` (255),`defined_meaning_id`)
2121 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2222
2323 -- object_id - key for the attribute, used elsewhere as a foreign key
@@ -83,10 +83,10 @@
8484 `remove_transaction_id` int(11) default NULL,
8585 KEY `versioned_end_collection` (`remove_transaction_id`,`collection_id`,`collection_mid`),
8686 KEY `versioned_end_collection_meaning` (`remove_transaction_id`,`collection_mid`,`collection_id`),
87 - KEY `versioned_end_collection_type` (`remove_transaction_id`,`collection_type`,`collection_id`,`collection_mid`),
 87+ KEY `versioned_end_collection_type` (`remove_transaction_id`,`collection_type` (4),`collection_id`,`collection_mid`),
8888 KEY `versioned_start_collection` (`add_transaction_id`,`collection_id`,`collection_mid`),
8989 KEY `versioned_start_collection_meaning` (`add_transaction_id`,`collection_mid`,`collection_id`),
90 - KEY `versioned_start_collection_type` (`add_transaction_id`,`collection_type`,`collection_id`,`collection_mid`)
 90+ KEY `versioned_start_collection_type` (`add_transaction_id`,`collection_type` (4),`collection_id`,`collection_mid`)
9191 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
9292
9393 CREATE TABLE /*$wgWDprefix*/defined_meaning (
@@ -111,7 +111,7 @@
112112 `remove_transaction_id` int(11) default NULL,
113113 KEY `versioned_end_expression` (`remove_transaction_id`,`expression_id`,`language_id`),
114114 KEY `versioned_end_language` (`remove_transaction_id`,`language_id`,`expression_id`),
115 - KEY `versioned_end_spelling` (`remove_transaction_id`,`spelling`,`expression_id`,`language_id`),
 115+ KEY `versioned_end_spelling` (`remove_transaction_id`,`spelling`(255),`expression_id`,`language_id`),
116116 KEY `versioned_start_expression` (`add_transaction_id`,`expression_id`,`language_id`),
117117 KEY `versioned_start_language` (`add_transaction_id`,`language_id`,`expression_id`),
118118 KEY `versioned_start_spelling` (`add_transaction_id`,`spelling`,`expression_id`,`language_id`)

Status & tagging log