@@ -73,17 +73,19 @@ |
||
73 | 73 | if($Column->default != null) { |
74 | 74 | $default = $Column->default; |
75 | 75 | if (is_string($default)) { |
76 | - if (str($default)->startsWith("%")) |
|
77 | - $default = str($default)->explode("%")->last(); |
|
78 | - else |
|
79 | - $default = "'".$default."'"; |
|
76 | + if (str($default)->startsWith("%")) { |
|
77 | + $default = str($default)->explode("%")->last(); |
|
78 | + } else { |
|
79 | + $default = "'".$default."'"; |
|
80 | + } |
|
80 | 81 | } |
81 | 82 | |
82 | 83 | $query .= " DEFAULT ".$default; |
83 | 84 | } |
84 | 85 | |
85 | - if(count($table->getColumns())-1 != $key) |
|
86 | - $query .= ", "; |
|
86 | + if(count($table->getColumns())-1 != $key) { |
|
87 | + $query .= ", "; |
|
88 | + } |
|
87 | 89 | } |
88 | 90 | $query .= ");"; |
89 | 91 |