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

🪲 Initialize DB tables on app inizialitation #5609

Closed
jpelay opened this issue Jun 12, 2024 · 0 comments · Fixed by #5630
Closed

🪲 Initialize DB tables on app inizialitation #5609

jpelay opened this issue Jun 12, 2024 · 0 comments · Fixed by #5630
Assignees
Labels
bug Something isn't working

Comments

@jpelay
Copy link
Member

jpelay commented Jun 12, 2024

Describe the bug
On #4862 I did a little hack by setting the DEBUG_MODE variable before main is executed. This is not ideal and @rix0rrr suggested a better alternative:

I think the better solution is probably to control the initialization order of all these things better, by making the tables class members of Database and initializing it when the app is created

@jpelay jpelay added the bug Something isn't working label Jun 12, 2024
@jpelay jpelay self-assigned this Jun 12, 2024
@jpelay jpelay moved this to ToBeDiscussed in Hedy organization board Jul 23, 2024
@Felienne Felienne moved this from ToBeDiscussed to Done in Hedy organization board Jul 30, 2024
@mergify mergify bot closed this as completed in #5630 Jul 30, 2024
@mergify mergify bot closed this as completed in 180894e Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant