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

feat: move volume property from bottle to wine entry #124

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Conversation

d12frosted
Copy link
Owner

Aside from giving a way to reflect the mere fact that some wines come in very specific bottle sizes (think of Radikon, Marsala, etc.), it also allows to distinguish wines of different size: price and rating-wise. And indeed, magnum bottles are often quite different - not only they do have their own evolution compared to normal bottles, sometimes they are even crafted differently (a common thing within Champagne).

So practically, thus also means that one should create separate wine entries for different volumes.

P.S. If you have troubles migrating, simply run the following SQL:

ALTER TABLE bottle DROP COLUMN volume;

There is no migration routine as I haven't seen users of vino-inv yet.

Aside from giving a way to reflect the mere fact that some wines come in very specific bottle sizes (think of Radikon,
Marsala, etc.), it also allows to distinguish wines of different size: price and rating-wise. And indeed, magnum bottles
are often quite different - not only they do have their own evolution compared to normal bottles, sometimes they are
even crafted differently (a common thing within Champagne).

So practically, thus also means that one should create separate wine entries for different volumes.

P.S. If you have troubles migrating, simply run the following SQL:

  ALTER TABLE bottle DROP COLUMN volume;

There is no migration routine as I haven't seen users of vino-inv yet.
@d12frosted d12frosted merged commit 28c7ddc into master Sep 15, 2024
1 check failed
@d12frosted d12frosted deleted the feat/volume branch September 15, 2024 07:09
@d12frosted
Copy link
Owner Author

I will address the failing tests shortly™.

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

Successfully merging this pull request may close these issues.

1 participant