Exemple #1
0
 /** {@inheritdoc} */
 public function addColumnObject($column)
 {
     // PostgreSQL creates columns without comment. Adjust $column so that
     // setComment() knows that it must still be added.
     $comment = $column->getComment();
     $column->setComment(null);
     $newColumn = parent::addColumnObject($column);
     if ($comment) {
         $newColumn->setComment($comment);
         $column->setComment($comment);
     }
     return $newColumn;
 }