From a5ce7f197858094d5ed8db8cba9d07032e4211c3 Mon Sep 17 00:00:00 2001 From: MitchLloyd Date: Thu, 18 Apr 2024 15:38:36 +0100 Subject: [PATCH] add create and insert to setup script (#480) Co-authored-by: Dedekind561 --- db/initdb.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/db/initdb.sql b/db/initdb.sql index e69de29bb2..a1872fda0b 100644 --- a/db/initdb.sql +++ b/db/initdb.sql @@ -0,0 +1,11 @@ +\c videorec; + +DROP TABLE IF EXISTS videos CASCADE; + +CREATE TABLE videos ( + title VARCHAR, + src VARCHAR +); + +INSERT INTO videos (title,src) VALUES ('Never Gonna Give You Up','https://www.youtube.com/watch?v=dQw4w9WgXcQ'); +-- you can insert more rows using example data from the example_data.csv file \ No newline at end of file