From e905909585b81ab0407c7ea0650f1705f13b0d8c Mon Sep 17 00:00:00 2001 From: Dedekind561 Date: Mon, 8 Apr 2024 16:55:14 +0100 Subject: [PATCH] add create and insert to setup script --- 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