fix: adjust sql/schema.sql
This commit is contained in:
parent
8dd91fc2dc
commit
c941c6c229
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue