| 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); |
| 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"); |