diff options
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index ae708d49e..af694203e 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1320,14 +1320,14 @@ function system_schema() { 'src' => array( 'description' => 'The Drupal path this alias is for; e.g. node/12.', 'type' => 'varchar', - 'length' => 128, + 'length' => 255, 'not null' => TRUE, 'default' => '', ), 'dst' => array( 'description' => 'The alias for this path; e.g. title-of-the-story.', 'type' => 'varchar', - 'length' => 128, + 'length' => 255, 'not null' => TRUE, 'default' => '', ), @@ -3538,6 +3538,17 @@ function system_update_7025() { } /** + * Increase permitted length of url aliases to 255 characters. + * + */ +function system_update_7026() { + $ret = array(); + db_change_field($ret, 'url_alias', 'src', 'src', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE)); + db_change_field($ret, 'url_alias', 'dst', 'dst', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE)); + return $ret; +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |