Skip to content

Database Schema #554

Answered by mikfire
matty0ung asked this question in Q&A
Apr 11, 2021 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

Sure. They allow us to find our data when we want to update an ingredient or something. As an example, we ship 14 water profiles by default right now. Let's say the user adds 6 profiles, and then we update our database and add a new profile. The entry in bt_water will be (id,water_id) if (15,21). On the next update if we have to fix that last water profile, we can easily find it in the user's database.

They were introduced in 9838ed2. If you dig into Database::updateDatabase, there is a description of the mechanism but not much else.

I thought we had some basic docs on how to use them, as I need to remember how this works every time I look at it. Apparently, we don't. I should probably fi…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by matty0ung
Comment options

matty0ung
Apr 12, 2021
Maintainer Author

You must be logged in to vote
8 replies
@mikfire
Comment options

@matty0ung
Comment options

matty0ung Apr 13, 2021
Maintainer Author

@mikfire
Comment options

@matty0ung
Comment options

matty0ung Apr 15, 2021
Maintainer Author

@mikfire
Comment options

Comment options

matty0ung
Apr 21, 2021
Maintainer Author

You must be logged in to vote
1 reply
@mikfire
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