Skip to content

Commit

Permalink
Deprecate inconsistent Comparator API
Browse files Browse the repository at this point in the history
This commit deprecates:
- calls to compare(), and
- static calls to compareSchemas().
  • Loading branch information
trompette committed Jul 13, 2021
1 parent 857d81e commit 10f1c6a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ awareness about deprecated code.

# Upgrade to 3.2

## Deprecated static calls to `Comparator::compareSchemas($fromSchema, $toSchema)`

The usage of `Comparator::compareSchemas($fromSchema, $toSchema)` statically is
deprecated in order to provide a more consistent API.

## Deprecated `Comparator::compare($fromSchema, $toSchema)`

The usage of `Comparator::compare($fromSchema, $toSchema)` is deprecated and
replaced by `Comparator::compareSchemas($fromSchema, $toSchema)` in order to
clarify the purpose of the method.

## Deprecated `Connection::lastInsertId($name)`

The usage of `Connection::lastInsertId()` with a sequence name is deprecated as unsafe in scenarios with multiple
Expand Down

0 comments on commit 10f1c6a

Please sign in to comment.