|
@@ 2620-2621 (lines=2) @@
|
| 2617 |
|
if ( $old_name != $field[ 'name' ] || $old_simple != $simple ) { |
| 2618 |
|
$test = false; |
| 2619 |
|
|
| 2620 |
|
if ( 0 < strlen( $old_definition ) ) |
| 2621 |
|
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `{$old_name}` {$definition}", false ); |
| 2622 |
|
|
| 2623 |
|
// If the old field doesn't exist, continue to add a new field |
| 2624 |
|
if ( false === $test ) |
|
@@ 2639-2640 (lines=2) @@
|
| 2636 |
|
elseif ( 0 < strlen( $definition ) ) { |
| 2637 |
|
$test = false; |
| 2638 |
|
|
| 2639 |
|
if ( 0 < strlen( $old_definition ) ) |
| 2640 |
|
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `" . $field[ 'name' ] . "` {$definition}", false ); |
| 2641 |
|
|
| 2642 |
|
// If the old field doesn't exist, continue to add a new field |
| 2643 |
|
if ( false === $test ) |