Skip to content

Commit

Permalink
fix enum building
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailShumilov committed Jan 27, 2015
1 parent 6857f26 commit 92c56b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Convertor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private function convert_field_data($attrs)
$fieldStr .= "text ";
} elseif (substr($attrs['Type'], 0, 4) == "enum") {
//Create custom type
$dataType = "enum_" . $attrs['Field'];
$dataType = $this->lastTable . "_enum_" . $attrs['Field'];
$this->tableFields["types"][] = $dataType . " as " . $attrs['Type'];
$fieldStr .= $dataType . " ";
} else {
Expand Down

0 comments on commit 92c56b7

Please sign in to comment.