--- pathauto.module	2006-11-20 18:58:34.000000000 -0500
+++ pathauto.module	2007-02-19 17:12:40.000000000 -0500
@@ -119,7 +119,7 @@ function pathauto_settings() {
     $group_weight++;
     
     // Prompt for the default pattern for this module
-    $variable = 'pathauto_'.$module.'_pattern';
+    $variable = 'pathauto_'.$module.'_p';
     $form[$module][$variable] = array('#type' => 'textfield',
       '#title' => $patterndescr,
       '#default_value' => variable_get($variable,$patterndefault),
@@ -129,7 +129,7 @@ function pathauto_settings() {
     // them up here
     if ($settings->patternitems) {
       foreach ($settings->patternitems as $itemname => $itemlabel) {
-        $variable = 'pathauto_'.$module.'_'.$itemname.'_pattern';
+        $variable = 'pathauto_'.$module.'_'.$itemname.'_p';
         $form[$module][$variable] = array('#type' => 'textfield',
           '#title' => $itemlabel, 
           '#default_value' => variable_get($variable,''),
@@ -321,10 +321,10 @@ function pathauto_create_alias($module, 
   // Retrieve and apply the pattern for this content type
   $pattern = '';
   if ($type) {
-    $pattern = drupal_strtolower(variable_get('pathauto_'.$module.'_'.$type.'_pattern', ''));
+    $pattern = drupal_strtolower(variable_get('pathauto_'.$module.'_'.$type.'_p', ''));
   } 
   if (!trim($pattern)) {
-    $pattern = drupal_strtolower(variable_get('pathauto_'.$module.'_pattern', ''));
+    $pattern = drupal_strtolower(variable_get('pathauto_'.$module.'_p', ''));
   }
   
   // No pattern? Do nothing (otherwise we may blow away existing aliases...)
@@ -490,7 +490,7 @@ function pathauto_menu($may_cache) {  
  *         text version and build ID of this release, respectively.
  */
 function _pathauto_version() {
-  return array("text" => "2005-9-18", "build" => 5);
+  return array("text" => "2006-7-7", "build" => 6);
 } // function _pathauto_version
 
 /**
@@ -611,6 +611,11 @@ function _pathauto_update() {
       }
       variable_del('pathauto_applytofeed');
     }
+    // reducing the number of characters pathauto uses for labeling of pattern variables
+    if ($installed_version['build'] <= 5) {
+      $query = "UPDATE `variable` SET name = LEFT( name, LENGTH( name) -6 ) WHERE name LIKE 'pathauto_%_pattern'";
+      $result = db_query($query);
+    }
 
     // Set the current version
     variable_set('pathauto_version', $current_version);
