| @@ 1554-1563 (lines=10) @@ | ||
| 1551 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'] table for the class ['.get_class($this->BO).']'); |
|
| 1552 | } |
|
| 1553 | ||
| 1554 | if ($this->BO->getMaintainHistory()) { |
|
| 1555 | $sqlQuery = str_replace($this->BO->getTableName(), $this->BO->getTableName().'_history', $sqlQuery); |
|
| 1556 | ||
| 1557 | if (!$result = self::getConnection()->query($sqlQuery)) { |
|
| 1558 | throw new AlphaException('Failed to add the new attribute ['.$propName.'] to the table ['.$this->BO->getTableName().'_history], query is ['.$this->BO->getLastQuery().']'); |
|
| 1559 | self::$logger->debug('<<addProperty'); |
|
| 1560 | } else { |
|
| 1561 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'_history] table for the class ['.get_class($this->BO).']'); |
|
| 1562 | } |
|
| 1563 | } |
|
| 1564 | ||
| 1565 | self::$logger->debug('<<addProperty'); |
|
| 1566 | } |
|
| @@ 1607-1616 (lines=10) @@ | ||
| 1604 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'] table for the class ['.get_class($this->BO).']'); |
|
| 1605 | } |
|
| 1606 | ||
| 1607 | if ($this->BO->getMaintainHistory()) { |
|
| 1608 | $sqlQuery = str_replace($this->BO->getTableName(), $this->BO->getTableName().'_history', $sqlQuery); |
|
| 1609 | ||
| 1610 | if (!$result = self::getConnection()->query($sqlQuery)) { |
|
| 1611 | throw new AlphaException('Failed to add the new attribute ['.$propName.'] to the table ['.$this->BO->getTableName().'_history], query is ['.$this->BO->getLastQuery().']'); |
|
| 1612 | self::$logger->debug('<<addProperty'); |
|
| 1613 | } else { |
|
| 1614 | self::$logger->info('Successfully added the ['.$propName.'] column onto the ['.$this->BO->getTableName().'_history] table for the class ['.get_class($this->BO).']'); |
|
| 1615 | } |
|
| 1616 | } |
|
| 1617 | ||
| 1618 | self::$logger->debug('<<addProperty'); |
|
| 1619 | } |
|