| @@ 674-684 (lines=11) @@ | ||
| 671 | /** |
|
| 672 | * @inheritDoc |
|
| 673 | */ |
|
| 674 | public function hasColumn($tableName, $columnName) |
|
| 675 | { |
|
| 676 | $rows = $this->getTableInfo($tableName); |
|
| 677 | foreach ($rows as $column) { |
|
| 678 | if (strcasecmp($column['name'], $columnName) === 0) { |
|
| 679 | return true; |
|
| 680 | } |
|
| 681 | } |
|
| 682 | ||
| 683 | return false; |
|
| 684 | } |
|
| 685 | ||
| 686 | /** |
|
| 687 | * @inheritDoc |
|
| @@ 454-464 (lines=11) @@ | ||
| 451 | /** |
|
| 452 | * @inheritDoc |
|
| 453 | */ |
|
| 454 | public function hasColumn($tableName, $columnName) |
|
| 455 | { |
|
| 456 | $rows = $this->fetchAll(sprintf('SHOW COLUMNS FROM %s', $this->quoteTableName($tableName))); |
|
| 457 | foreach ($rows as $column) { |
|
| 458 | if (strcasecmp($column['Field'], $columnName) === 0) { |
|
| 459 | return true; |
|
| 460 | } |
|
| 461 | } |
|
| 462 | ||
| 463 | return false; |
|
| 464 | } |
|
| 465 | ||
| 466 | /** |
|
| 467 | * @inheritDoc |
|