|
@@ 2629-2630 (lines=2) @@
|
| 2626 |
|
if ( $old_name != $field[ 'name' ] || $old_simple != $simple ) { |
| 2627 |
|
$test = false; |
| 2628 |
|
|
| 2629 |
|
if ( 0 < strlen( $old_definition ) ) |
| 2630 |
|
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `{$old_name}` {$definition}", false ); |
| 2631 |
|
|
| 2632 |
|
// If the old field doesn't exist, continue to add a new field |
| 2633 |
|
if ( false === $test ) |
|
@@ 2648-2649 (lines=2) @@
|
| 2645 |
|
elseif ( 0 < strlen( $definition ) ) { |
| 2646 |
|
$test = false; |
| 2647 |
|
|
| 2648 |
|
if ( 0 < strlen( $old_definition ) ) |
| 2649 |
|
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `" . $field[ 'name' ] . "` {$definition}", false ); |
| 2650 |
|
|
| 2651 |
|
// If the old field doesn't exist, continue to add a new field |
| 2652 |
|
if ( false === $test ) |