- Patch #192348 by douggreen and bjaspan: fixed database inconsistencies.
parent
c01f6bad7b
commit
6bb15d29da
|
@ -55,7 +55,7 @@ function search_schema() {
|
||||||
'description' => t('Set to force node reindexing.'),
|
'description' => t('Set to force node reindexing.'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'indexes' => array('sid_type' => array('sid', 'type')),
|
'unique keys' => array('sid_type' => array('sid', 'type')),
|
||||||
);
|
);
|
||||||
|
|
||||||
$schema['search_index'] = array(
|
$schema['search_index'] = array(
|
||||||
|
|
|
@ -4515,7 +4515,7 @@ function system_update_6036() {
|
||||||
// Since it's possible that some existing sites have duplicates,
|
// Since it's possible that some existing sites have duplicates,
|
||||||
// create the index using the IGNORE keyword, which ignores duplicate errors.
|
// create the index using the IGNORE keyword, which ignores duplicate errors.
|
||||||
// However, pgsql doesn't support it
|
// However, pgsql doesn't support it
|
||||||
$ret[] = update_sql("ALTER IGNORE TABLE {search_index} ADD UNIQUE KEY sid_word_type (sid, word, type)");
|
$ret[] = update_sql("ALTER IGNORE TABLE {search_index} ADD UNIQUE KEY word_sid_type (word, sid, type)");
|
||||||
$ret[] = update_sql("ALTER IGNORE TABLE {search_dataset} ADD UNIQUE KEY sid_type (sid, type)");
|
$ret[] = update_sql("ALTER IGNORE TABLE {search_dataset} ADD UNIQUE KEY sid_type (sid, type)");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue