Пример #1
0
 /**
  * Add a column to a table.
  *
  * @param string $table
  *            Table name.
  * @param string $column
  *            Column name.
  * @param DataType $type
  *            Column type.
  */
 protected function addColumn($table, $column, DataType $type)
 {
     try {
         $this->db->addColumn($table, $column, $type);
         $this->definition->addColumn($table, $column, $type);
     } catch (\Exception $e) {
         if (!$this->ignoreExceptions) {
             throw $e;
         }
     }
 }