From 66de95c0df9be8208b4801e3a3523c09ddb5f842 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Tue, 27 Oct 2020 16:23:22 +0100 Subject: [PATCH] Fixed small typo to set all table names as lowercase Signed-off-by: Louis Vallat --- MoviesQuoteBot.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MoviesQuoteBot.sql b/MoviesQuoteBot.sql index c9a50a4..1768a13 100644 --- a/MoviesQuoteBot.sql +++ b/MoviesQuoteBot.sql @@ -1,4 +1,4 @@ -DROP TABLE IF EXISTS application, film, language, subtitle_line, Subtitle; +DROP TABLE IF EXISTS application, film, language, subtitle_line, subtitle; /** Store some information on the application. @@ -42,7 +42,7 @@ CREATE TABLE IF NOT EXISTS language /** Subtitles */ -CREATE TABLE IF NOT EXISTS Subtitle +CREATE TABLE IF NOT EXISTS subtitle ( id int GENERATED ALWAYS AS IDENTITY, film_id int NOT NULL, @@ -52,9 +52,9 @@ CREATE TABLE IF NOT EXISTS Subtitle UNIQUE (film_id, language_id), PRIMARY KEY (id), FOREIGN KEY (film_id) - REFERENCES Film (id), + REFERENCES film (id), FOREIGN KEY (language_id) - REFERENCES Language (id) + REFERENCES language (id) ); /**