From: Chuck Hagenbuch Date: Sun, 3 Oct 2010 21:18:27 +0000 (-0400) Subject: Always regenerate the full column X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8dbef083a0ac9f346e5687e8c7b2e88d99d8c116;p=horde.git Always regenerate the full column --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Base/TableDefinition.php b/framework/Db/lib/Horde/Db/Adapter/Base/TableDefinition.php index af75a4158..b58ca188b 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Base/TableDefinition.php +++ b/framework/Db/lib/Horde/Db/Adapter/Base/TableDefinition.php @@ -121,11 +121,7 @@ class Horde_Db_Adapter_Base_TableDefinition implements ArrayAccess, IteratorAggr */ public function column($name, $type, $options = array()) { - if ($this[$name]) { - $column = $this[$name]; - } else { - $column = $this->_base->makeColumnDefinition($this->_base, $name, $type); - } + $column = $this->_base->makeColumnDefinition($this->_base, $name, $type); $column->setLimit(isset($options['limit']) ? $options['limit'] : null); $column->setPrecision(isset($options['precision']) ? $options['precision'] : null);