SQLAlchemy support for NoneBot2
Repo nonebot/plugin-orm, read from GitHub 1 min ago. nonebot has not joined Take My Repo.
Full Changelog: v0.8.3...v0.8.4
单数据库模板 (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/migrations/env.py +++ b/migrations/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
$LOCALSTORE_DATA_DIR/nonebot-plugin-orm/ 更改为 $LOCALSTORE_DATA_DIR/nonebot_plugin_orm/. 如果检测到旧默认数据目录的存在, 插件会自动将其移动到新默认数据目录位置.Full Changelog: v0.7.7...v0.8.0
Full Changelog: v0.7.6...v0.7.7