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) ); /**