diff --git a/Convertor.class.php b/Convertor.class.php index 4de80e7..5e72d0a 100644 --- a/Convertor.class.php +++ b/Convertor.class.php @@ -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 {