|
@@ 2615-2616 (lines=2) @@
|
| 2612 |
|
if ( $old_name != $field[ 'name' ] || $old_simple != $simple ) { |
| 2613 |
|
$test = false; |
| 2614 |
|
|
| 2615 |
|
if ( 0 < strlen( $old_definition ) ) |
| 2616 |
|
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `{$old_name}` {$definition}", false ); |
| 2617 |
|
|
| 2618 |
|
// If the old field doesn't exist, continue to add a new field |
| 2619 |
|
if ( false === $test ) |
|
@@ 2634-2635 (lines=2) @@
|
| 2631 |
|
elseif ( 0 < strlen( $definition ) ) { |
| 2632 |
|
$test = false; |
| 2633 |
|
|
| 2634 |
|
if ( 0 < strlen( $old_definition ) ) |
| 2635 |
|
$test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `" . $field[ 'name' ] . "` {$definition}", false ); |
| 2636 |
|
|
| 2637 |
|
// If the old field doesn't exist, continue to add a new field |
| 2638 |
|
if ( false === $test ) |