Created
March 4, 2019 09:12
-
-
Save shark-h/767708108d7e4e5f8a35009adeb5794e to your computer and use it in GitHub Desktop.
creating tables for voting app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE "public"."loved_language" ( | |
"name" text NOT NULL, | |
"user_id" text NOT NULL, | |
CONSTRAINT loved_language_pkey PRIMARY KEY (name, user_id), | |
CONSTRAINT loved_language_programming_language_fky FOREIGN KEY (name) REFERENCES programming_language(name), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, just wanted to say that i've been trying to run this and I found out that the comma on line 5 https://gist.github.com/shark-h/767708108d7e4e5f8a35009adeb5794e#file-create-table-sql-L5
needs to be deleted in order for the query to run!