Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6bb15d29
Commit
6bb15d29
authored
Nov 17, 2007
by
Dries Buytaert
Browse files
- Patch
#192348
by douggreen and bjaspan: fixed database inconsistencies.
parent
c01f6bad
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/search/search.install
View file @
6bb15d29
...
...
@@ -55,7 +55,7 @@ function search_schema() {
'description'
=>
t
(
'Set to force node reindexing.'
),
),
),
'
indexe
s'
=>
array
(
'sid_type'
=>
array
(
'sid'
,
'type'
)),
'
unique key
s'
=>
array
(
'sid_type'
=>
array
(
'sid'
,
'type'
)),
);
$schema
[
'search_index'
]
=
array
(
...
...
modules/system/system.install
View file @
6bb15d29
...
...
@@ -4515,7 +4515,7 @@ function system_update_6036() {
// Since it's possible that some existing sites have duplicates,
// create the index using the IGNORE keyword, which ignores duplicate errors.
// However, pgsql doesn't support it
$ret[] = update_sql("ALTER IGNORE TABLE {search_index} ADD UNIQUE KEY
sid_wor
d_type (
sid, wor
d, type)");
$ret[] = update_sql("ALTER IGNORE TABLE {search_index} ADD UNIQUE KEY
word_si
d_type (
word, si
d, type)");
$ret[] = update_sql("ALTER IGNORE TABLE {search_dataset} ADD UNIQUE KEY sid_type (sid, type)");
}
else {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment