Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Brewfection/data/createBrewDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ CREATE TABLE style_of_recipe(
CREATE TABLE grain_in_recipe(
grain_id INT NOT NULL,
recipe_id INT NOT NULL,
amount INT NOT NULL,
amount NUMERIC NOT NULL,
PRIMARY KEY (grain_id, recipe_id),
FOREIGN KEY (recipe_id)
REFERENCES beer_recipe(id)
Expand All @@ -113,7 +113,7 @@ CREATE TABLE grain_in_recipe(
CREATE TABLE hops_in_recipe(
hops_id INT NOT NULL,
recipe_id INT NOT NULL,
amount INT NOT NULL,
amount NUMERIC NOT NULL,
exposure_time INT NOT NULL,
PRIMARY KEY (hops_id, recipe_id, exposure_time),
FOREIGN KEY (recipe_id)
Expand Down
Loading