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

documentation of the Lemmy database tables - the lemmy_server Rust code dynamically generates them, so they seem hard to find? #233

Open
RocketDerp opened this issue Jun 24, 2023 · 2 comments

Comments

@RocketDerp
Copy link
Contributor

As I understand it, the code goes through all the history of 'migrations' and alter tables to dynamically get to the final version-specific database structure.

I think for each release it would be nice to have a fully published readable version of the CREATE TABLE statements as they end up in the running release of that version.

Given the ongoing performance scaling issues of the 0.18 era of Lemmy, I think it is important that developers see the resulting table structures that the app is generating.

If this already exists and I'm confused, please excuse my oversight and share a link where it's published by the project.

@Nutomic
Copy link
Member

Nutomic commented Jun 26, 2023

You can use diesel cli to execute the migrations against a local database, and then dump the db schema using backup instructions

@RocketDerp

This comment was marked as abuse.

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