Skip to content

Commit

Permalink
fix UPGRADE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Apr 7, 2024
1 parent c3853a7 commit fee63e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ there is version B between A and C, you need to following the instructions for b

## Upgrade from 1.x to 2.x

* Add `ColumnInterface` support and change type of parameter `$type` from `string` to `ColumnInterface|string`
Add `ColumnInterface` support and change type of parameter `$type` from `string` to `ColumnInterface|string`
in `addColumn()` method of your classes that implement the following interfaces:

- `Yiisoft\Db\Command\CommandInterface`;
Expand All @@ -18,4 +18,4 @@ in `addColumn()` method of your classes that implement the following interfaces:
- `Yiisoft\Db\QueryBuilder\AbstractQueryBuilder`.

`$columns` parameter of `Query::select()` and `Query::addSelect()` methods can also accept scalar values of `bool`,
`float` or `int` types or array with scalar values. For example, `$query->select(1)` will be converted to `SELECT 1`.
`float` or `int` types or array with scalar values. For example, `$query->select(1)` will be converted to `SELECT 1`.

0 comments on commit fee63e8

Please sign in to comment.