Skip to content

Commit

Permalink
Merge pull request #5 from Saint-Marys-College/master
Browse files Browse the repository at this point in the history
Enum Support
  • Loading branch information
nicjansma committed Jan 28, 2013
2 parents 633fc63 + bafe1df commit d25c4f0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mysql-convert-latin1-to-utf8.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,26 @@
$tmpDataType = 'LONGBLOB';
break;

// If your database uses the enum type it is safe to uncomment this block and line 122-124 if and only if all of the enum possibilities only use characters in the 0-127 ASCII character set.
// case 'ENUM':
// $tmpDataType = 'SKIP';
// break;

default:
$tmpDataType = '';
break;
}

// if ($tmpDataType === 'SKIP') {
// break;
// }

if ($tmpDataType === '') {
print "Unknown type! $colDataType\n";
exit;
}


// Change the column definition to the new type
$tempColType = str_ireplace($colDataType, $tmpDataType, $colType);

Expand Down Expand Up @@ -199,4 +209,4 @@ function sqlObjs($db, $sql)
return $a;
}

?>
?>

0 comments on commit d25c4f0

Please sign in to comment.