Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
92496eb8
Commit
92496eb8
authored
Aug 24, 2006
by
drumm
Browse files
#14400
by chx. Add a missing key.
parent
153fbc78
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/aggregator/aggregator.install
View file @
92496eb8
...
...
@@ -52,7 +52,8 @@ function aggregator_install() {
description longtext NOT NULL,
timestamp int default NULL,
guid varchar(255),
PRIMARY KEY (iid)
PRIMARY KEY (iid),
KEY fid (fid)
) /*!40100 DEFAULT CHARACTER SET UTF8 */ "
);
break
;
...
...
@@ -106,6 +107,7 @@ function aggregator_install() {
guid varchar(255),
PRIMARY KEY (iid)
)"
);
db_query
(
"CREATE INDEX
{
aggregator_item
}
_fid_idx ON
{
aggregator_item
}
(fid)"
);
break
;
}
...
...
modules/system/system.install
View file @
92496eb8
...
...
@@ -3076,6 +3076,20 @@ function system_update_1006() {
return
$ret
;
}
function
system_update_1007
()
{
$ret
=
array
();
switch
(
$GLOBALS
[
'db_type'
])
{
case
'mysql'
:
case
'mysqli'
:
$ret
[]
=
update_sql
(
"ALTER TABLE
{
aggregator_item
}
ADD INDEX (fid)"
);
break
;
case
'pgsql'
:
$ret
[]
=
update_sql
(
"CREATE INDEX
{
aggregator_item
}
_fid_idx ON
{
aggregator_item
}
(fid)"
);
break
;
}
return
$ret
;
}
/**
* @} End of "defgroup updates-4.7-to-x.x"
* The next series of updates should start at 2000.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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