Skip to content

Releases: nonebot/plugin-orm

🔖 Release 0.8.3

01 Jan 11:52
v0.8.3
8eae08b

Choose a tag to compare

What's Changed

单数据库模板 (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

12 Jul 17:13
v0.8.2
e25e449

Choose a tag to compare

🔖 Release 0.8.1

03 Jun 18:45
v0.8.1
317e401

Choose a tag to compare

🔖 Release 0.8.0

25 May 15:11
v0.8.0
3bf667f

Choose a tag to compare

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

15 Mar 02:34
0b7f1ab

Choose a tag to compare

What's Changed

Full Changelog: v0.7.6...v0.7.7

🔖 Release 0.7.6

09 Aug 08:21
ea60f12

Choose a tag to compare

What's Changed

Full Changelog: v0.7.5...v0.7.6

🔖 Release 0.7.5

18 Jul 11:21
8468906

Choose a tag to compare

🔖 Release 0.7.4

28 Jun 10:28
a813bbd

Choose a tag to compare

🔖 Release 0.7.3

22 May 07:08
b282fc8

Choose a tag to compare

🔖 Release 0.7.2

28 Apr 09:59
d213e34

Choose a tag to compare