Releases: nonebot/plugin-orm
Releases · nonebot/plugin-orm
🔖 Release 0.8.3
What's Changed
- 🐛 fix(alembic): dispose engine
此修复改动了模板中的 env.py. 对于初始化脚本目录后使用的用户, 需要对 env.py 应用如下更改:
单数据库模板 (generic)
--- a/migrations/env.py
+++ b/migrations/env.py
@@ -70,6 +70,8 @@ async def run_migrations_online() -> None:
async with engine.connect() as connection:
await connection.run_sync(do_run_migrations)
+ await engine.dispose()
+
if context.is_offline_mode():
run_migrations_offline()多数据库模板 (multidb)
--- a/nonebot_plugin_orm/templates/multidb/env.py
+++ b/nonebot_plugin_orm/templates/multidb/env.py
@@ -113,6 +113,7 @@ async def run_migrations_online() -> None:
raise
finally:
await asyncio.gather(*(conn.close() for conn in conns.values()))
+ await asyncio.gather(*(engine.dispose() for engine in engines.values()))
if context.is_offline_mode():Full Changelog: v0.8.2...v0.8.3
🔖 Release 0.8.2
🔖 Release 0.8.1
🔖 Release 0.8.0
Notable Changes
- 💥 fix!: snake_case data directory
插件默认数据目录由$LOCALSTORE_DATA_DIR/nonebot-plugin-orm/更改为$LOCALSTORE_DATA_DIR/nonebot_plugin_orm/. 如果检测到旧默认数据目录的存在, 插件会自动将其移动到新默认数据目录位置.
What's Changed
Full Changelog: v0.7.7...v0.8.0
🔖 Release 0.7.7
What's Changed
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #23
- 🐛 fix(sqla): dependency injection type check
- 📌 fix: alembic<1.15
Full Changelog: v0.7.6...v0.7.7
🔖 Release 0.7.6
What's Changed
- 🐛 fix(alembic): default version_path and branch_label of revision
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #17
Full Changelog: v0.7.5...v0.7.6
🔖 Release 0.7.5
What's Changed
Full Changelog: v0.7.4...v0.7.5
🔖 Release 0.7.4
🔖 Release 0.7.3
What's Changed
- 🚸 fix(sqla): lazy orm init
- 🐛 fix(alembic): startup prompt ugly abort
- 🐛 fix(sqla): use typing types instead of collections.abc in Python 3.10
- ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #14
Full Changelog: v0.7.2...v0.7.3
🔖 Release 0.7.2
What's Changed
Full Changelog: v0.7.1...v0.7.2