tortoise / tortoise/tortoise-orm

Tortoise.generate_schemas() not creating tables

Open
#1,398 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.6k
Forks
516
Avg merge
2d 21h
Merged PRs (30d)
9

Description

recently, i installed tortoise orm for use in one of my major discord bots and had it completely rewritten for that. all worked fine, till yesterday, after i installed the latest version(0.19.3), and for some weird reason, tortoise orm stopped generating tables, and the sqlite viewer displayed the tables as null.

to make things worse, it shut down my bot, and doesn't give me any proper errors for debugging either.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Tortoise.generate_schemas() entry point and reproduce the report with version 0.19.3 and SQLite, checking whether tables are created and whether any error is emitted before the bot shuts down. The issue does not name a repository file or test; done means the table-generation failure and missing diagnostic are reproduced and covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.