Skip to content

Commit

Permalink
Merge pull request #229 from crestalnetwork/fix/pg-init
Browse files Browse the repository at this point in the history
fix: db init bug in blank project
  • Loading branch information
taiyangc authored Feb 10, 2025
2 parents 7b19dd6 + 9a762c5 commit 9425e71
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 209 deletions.
1 change: 1 addition & 0 deletions models/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ async def init_db(
if auto_migrate:
await safe_migrate(engine)
async with _pool.connection() as conn:
await conn.set_autocommit(True)
saver = AsyncPostgresSaver(conn)
await saver.setup()

Expand Down
Loading

0 comments on commit 9425e71

Please sign in to comment.