| @@ 1557-1566 (lines=10) @@ | ||
| 1554 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'] table for the class ['.get_class($this->BO).']'); |
|
| 1555 | } |
|
| 1556 | ||
| 1557 | if ($this->BO->getMaintainHistory()) { |
|
| 1558 | $sqlQuery = str_replace($this->BO->getTableName(), $this->BO->getTableName().'_history', $sqlQuery); |
|
| 1559 | ||
| 1560 | if (!$result = self::getConnection()->query($sqlQuery)) { |
|
| 1561 | throw new AlphaException('Failed to add the new attribute ['.$propName.'] to the table ['.$this->BO->getTableName().'_history], query is ['.$this->BO->getLastQuery().']'); |
|
| 1562 | self::$logger->debug('<<addProperty'); |
|
| 1563 | } else { |
|
| 1564 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'_history] table for the class ['.get_class($this->BO).']'); |
|
| 1565 | } |
|
| 1566 | } |
|
| 1567 | ||
| 1568 | self::$logger->debug('<<addProperty'); |
|
| 1569 | } |
|
| @@ 1575-1584 (lines=10) @@ | ||
| 1572 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'] table for the class ['.get_class($this->BO).']'); |
|
| 1573 | } |
|
| 1574 | ||
| 1575 | if ($this->BO->getMaintainHistory()) { |
|
| 1576 | $sqlQuery = str_replace($this->BO->getTableName(), $this->BO->getTableName().'_history', $sqlQuery); |
|
| 1577 | ||
| 1578 | if (!$result = self::getConnection()->query($sqlQuery)) { |
|
| 1579 | self::$logger->debug('<<addProperty'); |
|
| 1580 | throw new AlphaException('Failed to add the new attribute ['.$propName.'] to the table ['.$this->BO->getTableName().'_history], query is ['.$this->BO->getLastQuery().']'); |
|
| 1581 | } else { |
|
| 1582 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'_history] table for the class ['.get_class($this->BO).']'); |
|
| 1583 | } |
|
| 1584 | } |
|
| 1585 | ||
| 1586 | self::$logger->debug('<<addProperty'); |
|
| 1587 | } |
|