@@ 119-123 (lines=5) @@ | ||
116 | if (isset($tableDef['create']) && $tableDef['create']) { |
|
117 | array_push($tableDef['columns'], $columnDef); |
|
118 | } else { |
|
119 | foreach ($tableDef['columns'] as $col) { |
|
120 | if (strcasecmp($col['name'], $column) == 0) { |
|
121 | return true; |
|
122 | } |
|
123 | } |
|
124 | $this->queue[] = "ALTER TABLE `{$tableDef['name']}`" |
|
125 | . " ADD COLUMN `{$column}` {$columnDef['attributes']}"; |
|
126 | } |
|
@@ 272-276 (lines=5) @@ | ||
269 | if (isset($this->tables[$table])) { |
|
270 | $tableDef = $this->tables[$table]; |
|
271 | // loop thru and find the column |
|
272 | foreach ($tableDef['columns'] as $col) { |
|
273 | if (strcasecmp($col['name'], $column) === 0) { |
|
274 | return $col['attributes']; |
|
275 | } |
|
276 | } |
|
277 | } |
|
278 | ||
279 | return false; |