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
ee9421a8
Commit
ee9421a8
authored
Apr 03, 2009
by
Dries
Browse files
- Patch
#363262
by Dave Reid: adds a lost index to the URL table.
parent
ce4df7b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.install
View file @
ee9421a8
...
...
@@ -2685,6 +2685,15 @@ function system_update_6047() {
return
$ret
;
}
/**
* @} End of "defgroup updates-5.x-to-6.x"
*/
/**
* @defgroup updates-6.x-extra Extra system updates for 6.x
* @{
*/
/**
* Increase the size of the 'load_functions' and 'to_arg_functions' fields in
* table 'menu_router'.
...
...
@@ -2693,12 +2702,21 @@ function system_update_6048() {
$ret
=
array
();
db_change_field
(
$ret
,
'menu_router'
,
'load_functions'
,
'load_functions'
,
array
(
'type'
=>
'text'
,
'not null'
=>
TRUE
));
db_change_field
(
$ret
,
'menu_router'
,
'to_arg_functions'
,
'to_arg_functions'
,
array
(
'type'
=>
'text'
,
'not null'
=>
TRUE
));
return
$ret
;
}
/**
* Replace src index on the {url_alias} table with src, language.
*/
function
system_update_6049
()
{
$ret
=
array
();
db_drop_index
(
$ret
,
'url_alias'
,
'src'
);
db_add_index
(
$ret
,
'url_alias'
,
'src_language'
,
array
(
'src'
,
'language'
));
return
$ret
;
}
/**
* @} End of "defgroup updates-
5
.x-
to-6.x
"
* @} End of "defgroup updates-
6
.x-
extra
"
* The next series of updates should start at 7000.
*/
...
...
@@ -3221,21 +3239,10 @@ function system_update_7018() {
return
$ret
;
}
/**
* Replace src index on the {url_alias} table with src, language.
*/
function
system_update_7019
()
{
$ret
=
array
();
db_add_index
(
$ret
,
'url_alias'
,
'src_language'
,
array
(
'src'
,
'language'
));
db_drop_index
(
$ret
,
'url_alias'
,
'src'
);
return
$ret
;
}
/**
* Shorten the {system}.type column and add an index on type and name.
*/
function
system_update_70
20
()
{
function
system_update_70
19
()
{
$ret
=
array
();
db_drop_index
(
$ret
,
'system'
,
'modules'
);
db_change_field
(
$ret
,
'system'
,
'type'
,
'type'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
12
,
'not null'
=>
TRUE
,
'default'
=>
''
));
...
...
@@ -3247,7 +3254,7 @@ function system_update_7020() {
/**
* Enable field module.
*/
function
system_update_702
1
()
{
function
system_update_702
0
()
{
$ret
=
array
();
$module_list
=
array
(
'field_sql_storage'
,
'field'
);
drupal_install_modules
(
$module_list
);
...
...
Write
Preview
Supports
Markdown
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