Skip to content

Commit

Permalink
add create and insert to setup script (#480)
Browse files Browse the repository at this point in the history
Co-authored-by: Dedekind561 <[email protected]>
  • Loading branch information
Dedekind561 and Dedekind561 committed Apr 18, 2024
1 parent b34fb24 commit a5ce7f1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/initdb.sql
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a5ce7f1

Please sign in to comment.