Always regenerate the full column
authorChuck Hagenbuch <chuck@horde.org>
Sun, 3 Oct 2010 21:18:27 +0000 (17:18 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 3 Oct 2010 21:19:37 +0000 (17:19 -0400)
framework/Db/lib/Horde/Db/Adapter/Base/TableDefinition.php

index af75a41..b58ca18 100644 (file)
@@ -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);