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