-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tortoise.exceptions.OperationalError: relation "body" does not exist #17
Comments
I needed to run migrations, didn't find in the docs |
missing migrations ```python cli.py
|
all good, I need to run from the root: DEBUG:asyncio:Using selector: KqueueSelector
What would you like me to do?
> test
Initializing database
Found migrations: MigrationList([<Migration '20230717_01_initial_schema' from migrations/20230717_01_initial_schema.sql>])
INFO 09:19:35.787 base.py:504- Applying 20230717_01_initial_schema
INFO 09:19:35.808 migrations.py:402- - applying step 0
INFO 09:19:35.869 migrations.py:402- - applying step 1
INFO 09:19:35.926 migrations.py:402- - applying step 2
INFO 09:19:35.951 migrations.py:402- - applying step 3
INFO 09:19:35.983 migrations.py:402- - applying step 4
INFO 09:19:36.014 migrations.py:402- - applying step 5
INFO 09:19:36.049 migrations.py:402- - applying step 6
INFO 09:19:36.097 migrations.py:402- - applying step 7
INFO 09:19:36.126 migrations.py:402- - applying step 8
INFO 09:19:36.134 migrations.py:402- - applying step 9
INFO 09:19:36.142 migrations.py:402- - applying step 10
INFO 09:19:36.188 base.py:534- Marking 20230717_01_initial_schema applied``` |
In my case it was that migrations relative path, expected to be from the repo root, but was cli file path as IDE generated it.
Setting the working directory path to the repo root solved the problem for me. |
Was this setting in your IDE? Can you tell me more about how you fixed it? |
INFO 09:00:38.380 decomposer.py:58- [
tortoise.exceptions.OperationalError: relation "body" does not exist
The text was updated successfully, but these errors were encountered: