Skip to content

Dynamic database schema based on user modules #3286

Answered by Darius1323
Darius1323 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Simon! Thank you so much for your reply!

I completely agree with your point for creating empty tables this will be the most straightforward approach.

However, the only reason why I was thinking to implement a dynamic table inclusion by using migration is because over time the actual Database class that creates the connection and the schema from the all possible modules will become quite cluttered with imports for DAOs and Tables. Therefore, I approached the problem by generating the code for each module by enabling the modular build from build.yaml. Afterwards, I wanted to just get the TableInfo that is generated by a module and migrate it into the initialised database.

And of course I…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Darius1323
Comment options

Answer selected by simolus3
@simolus3
Comment options

@Darius1323
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants