Skip to content
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

where is the pg Database Schema? #420

Open
ryangsun opened this issue Jan 25, 2024 · 1 comment
Open

where is the pg Database Schema? #420

ryangsun opened this issue Jan 25, 2024 · 1 comment

Comments

@ryangsun
Copy link

2024-01-25 16:01:07 File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute
2024-01-25 16:01:07 cursor.execute(statement, parameters)
2024-01-25 16:01:07 sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "team" does not exist
2024-01-25 16:01:07 LINE 2: FROM team LEFT OUTER JOIN team_config ON team.id = team_conf...
2024-01-25 16:01:07 ^

there was no tables in pg database

@okradze
Copy link
Contributor

okradze commented Jan 25, 2024

I will also answer here for others.
Uncomment this line and rerun server https://github.com/l3vels/L3AGI/blob/main/apps/server/main.py#L67
Base metadata will create initial table structure.
We commented because it takes too long to start server after restart on local.
Maybe we can make it as script to run.
I'm open to suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants