fix: adjust sql/schema.sql
This commit is contained in:
parent
8dd91fc2dc
commit
c941c6c229
|
@ -1,5 +1,13 @@
|
||||||
# zhv
|
# 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
|
* make sure to set variables like `PGDATABASE`, `PGUSER`, `PGHOST`, `PGPORT` aaso. appropriately
|
||||||
|
|
||||||
* initialize database
|
* 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
|
-- colon before variable: for a prepared statement using named placeholders, this will be a parameter name of the form :name
|
||||||
BEGIN;
|
BEGIN;
|
||||||
CREATE SCHEMA IF NOT EXISTS :schema;
|
CREATE SCHEMA IF NOT EXISTS :schema;
|
||||||
SET search_path to :schema, public,
|
SET search_path to :schema, public;
|
||||||
|
|
||||||
CREATE TABLE stops(
|
CREATE TABLE stops(
|
||||||
stop_seq_no BIGSERIAL NOT NULL,
|
stop_seq_no BIGSERIAL NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue