|
@@ 2356-2360 (lines=5) @@
|
| 2353 |
|
// Is actual field type different from the field type in query? |
| 2354 |
|
if ($tablefield->Type != $fieldtype) { |
| 2355 |
|
$do_change = true; |
| 2356 |
|
if ( in_array( $fieldtype_lowercased, $text_fields ) && in_array( $tablefield_type_lowercased, $text_fields ) ) { |
| 2357 |
|
if ( array_search( $fieldtype_lowercased, $text_fields ) < array_search( $tablefield_type_lowercased, $text_fields ) ) { |
| 2358 |
|
$do_change = false; |
| 2359 |
|
} |
| 2360 |
|
} |
| 2361 |
|
|
| 2362 |
|
if ( in_array( $fieldtype_lowercased, $blob_fields ) && in_array( $tablefield_type_lowercased, $blob_fields ) ) { |
| 2363 |
|
if ( array_search( $fieldtype_lowercased, $blob_fields ) < array_search( $tablefield_type_lowercased, $blob_fields ) ) { |
|
@@ 2362-2366 (lines=5) @@
|
| 2359 |
|
} |
| 2360 |
|
} |
| 2361 |
|
|
| 2362 |
|
if ( in_array( $fieldtype_lowercased, $blob_fields ) && in_array( $tablefield_type_lowercased, $blob_fields ) ) { |
| 2363 |
|
if ( array_search( $fieldtype_lowercased, $blob_fields ) < array_search( $tablefield_type_lowercased, $blob_fields ) ) { |
| 2364 |
|
$do_change = false; |
| 2365 |
|
} |
| 2366 |
|
} |
| 2367 |
|
|
| 2368 |
|
if ( $do_change ) { |
| 2369 |
|
// Add a query to change the column type. |