fix: adjust sql/schema.sql

This commit is contained in:
dancingCycle 2023-05-09 10:16:46 +02:00
parent 8dd91fc2dc
commit c941c6c229
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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,