Releases: nonebot/plugin-orm
Releases · nonebot/plugin-orm
🔖 Release 0.7.1
What's Changed
Full Changelog: v0.7.0...v0.7.1
🔖 Release 0.7.0
此次要版本是最后一个支持 Python 3.8 的版本
What's Changed
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #11
- ⚡ perf(sqla)!: sync function and async dependency of session
- ⬆️ refactor: support Pydantic V2
Full Changelog: v0.6.4...v0.7.0
🔖 Release 0.6.4
What's Changed
- 🐛 fix(alembic): incorrect change in 19aab8b
- 👷 ci: remove prettier
- ⚡ perf(sqla): single layer scoped session
Full Changelog: v0.6.3...v0.6.4
🔖 Release 0.6.3
What's Changed
- 🐛 fix(alembic): remove await_fallback() use
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #9
Full Changelog: v0.6.2...v0.6.3
🔖 Release 0.6.2
🔖 Release 0.6.1
What's Changed
- 🐛 fix(alembic):
UnicodeDecodeErrorwhenlist_templatesby @BalconyJH in #8 - 🐛 fix(sqla): close scoped session by processor
New Contributors
- @BalconyJH made their first contribution in #8
Full Changelog: v0.6.0...v0.6.1
🔖 Release 0.6.0
Notable Changes
- 💥 refactor(alembic)!: nested version locations
此重构改动了集中式脚本目录中子插件的脚本目录位置, 现在脚本目录位置与插件嵌套关系一致,而非全部在最顶层目录:
.
- ├── ff14_fflogs
- │ ├── b67acef6a240_migrate_data.py
- │ └── c3c52d7c9d07_init_db.py
- ├── hello
- │ ├── 5fc001a169eb_migrate_data.py
- │ └── e2f882d2c91d_init_db.py
- ├── morning_greeting
- │ ├── 3d228011e96b_migrate_data.py
- │ └── 65a94a4a643b_init_db.py
+ ├── ff14
+ │ └── ff14_fflogs
+ │ ├── b67acef6a240_migrate_data.py
+ │ └── c3c52d7c9d07_init_db.py
+ ├── morning
+ │ ├── hello
+ │ │ ├── 5fc001a169eb_migrate_data.py
+ │ │ └── e2f882d2c91d_init_db.py
+ │ └── morning_greeting
+ │ ├── 3d228011e96b_migrate_data.py
+ │ └── 65a94a4a643b_init_db.py请参照示例手动更改已有的集中式脚本目录结构.
注意:
ORM 内部使用的目录 $LOCALSTORE_DATA_DIR/nonebot-plugin-orm/migrations/ 也是集中式脚本目录, 如果你在升级后第一次使用时出现类似这样的异常: alembic.script.revision.RevisionError: Branch name 'morning_greeting' in revision 65a94a4a643b already used by revision 65a94a4a643b, 请尝试删除此目录.
What's Changed
- ⬇️ fix: use typing-extensions for Python < 3.11
- 🐛 fix(alembic): suppress warning when inferring version path by branc…
Full Changelog: v0.5.1...v0.6.0
🔖 Release 0.5.1
What's Changed
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #5
- 🐛 fix(alembic): no cmd opts when startup
Full Changelog: v0.5.0...v0.5.1
🔖 Release 0.5.0
🔖 Release 0.4.1
What's Changed
- 🐛 fix: missing default metadata if specify SQLALCHEMY_DATABASE_URL
- 🐛 fix(sqla): fail with unusual type annotation
- 🐛 fix(alembic): multidb env.py type annotation
- 🐛 fix(alembic): sync fail when db is not up to date
- 🐛 fix(alembic): more robust editable plugin detect
- 💥 revert(sqla)!: Model as pydantic dataclass
Full Changelog: v0.4.0...v0.4.1