From 3692eee08d7a088cfab165905cd3971e64862880 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 11 Jun 2009 04:59:26 +0000 Subject: - Patch #288946 by jeffschuler, z.stolar: increase path length to 255. --- modules/system/system.install | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'modules/system') 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' => '', ), @@ -3537,6 +3537,17 @@ function system_update_7025() { return $ret; } +/** + * 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. -- cgit v1.2.3