Index: trunk/phase3/maintenance/archives/patch-log_search.sql |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | -- The value of the ID |
6 | 6 | ls_value varchar(255) NOT NULL, |
7 | 7 | -- Key to log_id |
8 | | - ls_log_id int unsigned NOT NULL default 0 |
| 8 | + ls_log_id int unsigned NOT NULL default 0, |
| 9 | + PRIMARY KEY (ls_field,ls_value,ls_log_id) |
9 | 10 | ); |
10 | | -CREATE INDEX /*i*/log_field_value ON /*_*/log_search (ls_field,ls_value,ls_log_id); |
| 11 | +CREATE INDEX /*i*/ls_log_id ON /*_*/log_search (ls_log_id); |