Add UpgradeResult.was_upgraded
property.
Re-export UpgradeResult
and VersionResult
from dbupgrade
.
Drop support for Python 3.7 and 3.8.
dbupgrade is now easier to use as a library:
db_upgrade
,VersionInfo
,MAX_VERSION
, andMAX_API_LEVEL
are now re-exported fromdbupgrade
.- Add a
py.typed
file to indicate that dbupgrade is a typed package.
Switch to Calendar Versioning (CalVer).
- Fix percent characters when using SQLAlchemy 1 as well.
- Don't escape percent characters when using SQLAlchemy 2.
- Make compatible with SQLAlchemy 2.
- Improve forwards compatibility with SQLAlchemy 2.
- Add a
--json
option to print update information in JSON format.
- Return with exit code 1 when encountering an SQL error.
- Print proper error message, instead of a traceback when encountering an SQL error.
- Add
dbupgrade.__main__
.dbupgrade
can now be executed usingpython3 -m dbupgrade
.
- Fix a warning about isolation_level when using
-- Transaction: no
.
- Drop support for Python 3.5 and 3.6.
- Use sqlparse to split SQL statements. While this will provide greater SQL compatibility overall, it may be incompatible with some existing SQL files.
- Add
--quiet
option.
- Relax type requirements for the
stream
arguments ofparse_sql_stream()
,split_sql()
, andexecute_stream()
.
- Fix escaping of percent signs.
- Python 3.5 compatibility.
- Add a new file header
Transaction
to disable transaction handling for this file.