@@ 319-325 (lines=7) @@ | ||
316 | // Is this on a table we are adding? |
|
317 | if (isset($tableDef['create']) && $tableDef['create']) { |
|
318 | // loop thru and find the column |
|
319 | foreach ($tableDef['columns'] as &$col) { |
|
320 | if (strcasecmp($col['name'], $column) == 0) { |
|
321 | $col['name'] = $newName; |
|
322 | $col['attributes'] = $attributes; |
|
323 | break; |
|
324 | } |
|
325 | } |
|
326 | ||
327 | return true; |
|
328 | } else { |
|
@@ 332-338 (lines=7) @@ | ||
329 | $this->queue[] = "ALTER TABLE `{$tableDef['name']}` " . |
|
330 | "CHANGE COLUMN `{$column}` `{$newName}` {$attributes} "; |
|
331 | // loop thru and find the column |
|
332 | foreach ($tableDef['columns'] as &$col) { |
|
333 | if (strcasecmp($col['name'], $column) == 0) { |
|
334 | $col['name'] = $newName; |
|
335 | $col['attributes'] = $attributes; |
|
336 | break; |
|
337 | } |
|
338 | } |
|
339 | } |
|
340 | } else { |
|
341 | return $this->tableNotEstablished(); |