Commit e67b673c authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

minor amends

parent f0144c6d
......@@ -108,7 +108,7 @@ Compile wishlists from this data. */
CREATE TABLE Wish (
customer_id INT,
album_upc INT,
PRIMARY KEY (customer_id, album_id),
PRIMARY KEY (customer_id, album_upc),
FOREIGN KEY (customer_id)
REFERENCES Customer(id)
ON DELETE CASCADE,
......@@ -122,11 +122,11 @@ CREATE TABLE Rating (
customer_id INT NOT NULL,
album_upc CHAR(12) NOT NULL,
score TINYINT unsigned NOT NULL,
PRIMARY KEY (customer_id, album_id),
PRIMARY KEY (customer_id, album_upc),
FOREIGN KEY (customer_id)
REFERENCES Customer(id)
ON DELETE CASCADE,
FOREIGN KEY (album_upc)
REFERENCES Album (upc)
ON DELETE CASCADE
);
);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment