From 92c56b718e62e0d70e697a402960170c5b571a66 Mon Sep 17 00:00:00 2001 From: Mihail Shumilov Date: Tue, 27 Jan 2015 06:53:33 +0200 Subject: [PATCH] fix enum building --- Convertor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {