@@ 75-84 (lines=10) @@ | ||
72 | $sql = ['CREATE TABLE']; |
|
73 | $sql[] = $this->quote($table); |
|
74 | ||
75 | if(!empty($this->cols)){ |
|
76 | $sql[] = '('; |
|
77 | $sql[] = implode(',', $cols); |
|
78 | ||
79 | if($primaryKey){ |
|
80 | $sql[] = ', PRIMARY KEY ('.$this->quote($primaryKey).')'; |
|
81 | } |
|
82 | ||
83 | $sql[] = ')'; |
|
84 | } |
|
85 | ||
86 | return $sql; |
|
87 | } |
@@ 223-232 (lines=10) @@ | ||
220 | ||
221 | $sql[] = $this->quote($n[count($n) - 1]); |
|
222 | ||
223 | if(!empty($cols)){ |
|
224 | $sql[] = ' ('; |
|
225 | $sql[] = implode(', ', $cols); |
|
226 | ||
227 | if($primaryKey){ |
|
228 | $sql[] = ','.'PRIMARY KEY ('.$this->quote($primaryKey).')'; |
|
229 | } |
|
230 | ||
231 | $sql[] = ')'; |
|
232 | } |
|
233 | ||
234 | return $sql; |
|
235 | } |