From fcd5655f5bc6f09a2ce7f553b498c8a80ad1b1e0 Mon Sep 17 00:00:00 2001 From: Sorrel Harriet <s.harriet@gold.ac.uk> Date: Tue, 11 Oct 2016 13:50:05 +0100 Subject: [PATCH] minor amend --- lab-2/music-store-app/sql/schema.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lab-2/music-store-app/sql/schema.sql b/lab-2/music-store-app/sql/schema.sql index 8e1df6c..7c6fa10 100644 --- a/lab-2/music-store-app/sql/schema.sql +++ b/lab-2/music-store-app/sql/schema.sql @@ -10,8 +10,9 @@ CREATE TABLE Genre ( ); /* Define table for storing act (i.e. a group or solo artist) -ON DELETE CASCADE not needed in this -case as a Band does not HAVE to have an associated genre */ +ON DELETE CASCADE not used in this case as we don't want bands +being deleted if their genre is deleted. We'd rather an error +was raised. */ CREATE TABLE Band ( id INT AUTO_INCREMENT, name VARCHAR(50) NOT NULL, -- GitLab