From c941c6c2291b3059afa18f64bc4dd607937bdd16 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Tue, 9 May 2023 10:16:46 +0200 Subject: [PATCH] fix: adjust sql/schema.sql --- readme.md | 8 ++++++++ sql/schema.sql | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 783b517..19415fd 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,13 @@ # zhv +* checkout repository +``` +cd ~ +mkdir ~/git && cd ~/git +git clone https://git.wtf-eg.de/dancesWithCycles/zhv.git +cd zhv +``` + * make sure to set variables like `PGDATABASE`, `PGUSER`, `PGHOST`, `PGPORT` aaso. appropriately * initialize database diff --git a/sql/schema.sql b/sql/schema.sql index d6173c8..10f0a55 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -1,7 +1,7 @@ -- colon before variable: for a prepared statement using named placeholders, this will be a parameter name of the form :name BEGIN; CREATE SCHEMA IF NOT EXISTS :schema; -SET search_path to :schema, public, +SET search_path to :schema, public; CREATE TABLE stops( stop_seq_no BIGSERIAL NOT NULL,