From 2db0077133632f9ab527784a6c25e6215bbc419d Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Wed, 1 Aug 2018 14:17:20 +0100 Subject: [PATCH] Notes on database provision --- migrations/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migrations/README.md diff --git a/migrations/README.md b/migrations/README.md new file mode 100644 index 00000000..b4d9fbb3 --- /dev/null +++ b/migrations/README.md @@ -0,0 +1,13 @@ +# Database details + +Initial setup, on first connection (replacing hostname and username): + +```bash +$ psql "host={hostname} user={username} port=5432 sslmode=require dbname=postgres" +> create database colouringlondon; +> \c colouringlondon +> create extension postgis; +> create extension pgcrypto; +> \q +$ psql "host={hostname} user={username} port=5432 sslmode=require dbname=colouringlondon" < 001.create-core.up.sql +```