/[drupal]/contributions/modules/dbscripts/dbscripts.module
ViewVC logotype

Diff of /contributions/modules/dbscripts/dbscripts.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5.4.72, Sat May 30 17:06:09 2009 UTC revision 1.5.4.73, Sat May 30 17:06:13 2009 UTC
# Line 1471  function dbscripts_raise_table_increment Line 1471  function dbscripts_raise_table_increment
1471      return FALSE;      return FALSE;
1472    }    }
1473    
1474      // Add system path patterns as references
1475      if (isset($system_paths[$table]['tables'])) {
1476        foreach ($system_paths[$table]['tables'] as $system_path_table => $system_path_columns) {
1477          foreach ($system_path_columns as $system_path_column) {
1478            $table_references['references'][$system_path_table][] = $system_path_column;
1479          }
1480        }
1481      }
1482    
1483    // Find the largest increment value between $change_to and the current    // Find the largest increment value between $change_to and the current
1484    // increment. Use the highest increment    // increment. Use the highest increment
1485    $current_inc = dbscripts_get_table_increment($table, $branch);    $current_inc = dbscripts_get_table_increment($table, $branch);
# Line 1585  function dbscripts_raise_table_increment Line 1594  function dbscripts_raise_table_increment
1594    }    }
1595    exec("echo '}' >> $temp_location/increment_pairs.awk");    exec("echo '}' >> $temp_location/increment_pairs.awk");
1596    
   // Add system path patterns as references  
   if (isset($system_paths[$table]['tables'])) {  
     foreach ($system_paths[$table]['tables'] as $system_path_table => $system_path_columns) {  
       foreach ($system_path_columns as $system_path_column) {  
         $table_references['references'][$system_path_table][] = $system_path_column;  
       }  
     }  
   }  
1597    
1598    // Raise the auto_increment value of the table    // Raise the auto_increment value of the table
1599    exec("sed 's/ AUTO_INCREMENT={$current_inc['num']} / AUTO_INCREMENT={$increment_change} /g' $branch_location/tables/$table.sql > $temp_location/$table.sql");    exec("sed 's/ AUTO_INCREMENT={$current_inc['num']} / AUTO_INCREMENT={$increment_change} /g' $branch_location/tables/$table.sql > $temp_location/$table.sql");

Legend:
Removed from v.1.5.4.72  
changed lines
  Added in v.1.5.4.73

  ViewVC Help
Powered by ViewVC 1.1.2