summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install35
1 files changed, 21 insertions, 14 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index a6cbcd7f9..1acbe72a4 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2686,6 +2686,15 @@ function system_update_6047() {
}
/**
+ * @} 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.
*/
@@ -3222,20 +3240,9 @@ function system_update_7018() {
}
/**
- * 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_7020() {
+function system_update_7019() {
$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_7021() {
+function system_update_7020() {
$ret = array();
$module_list = array('field_sql_storage', 'field');
drupal_install_modules($module_list);