colouring-cities / colouring-dresden

GNU General Public License v3.0
0 stars 5 forks source link

Database setup: extensions and migrations up #22

Closed traveller195 closed 1 year ago

traveller195 commented 1 year ago

Database setup: extensions and migrations up compare:

https://github.com/colouring-cities/colouring-dresden/blob/main/migrations/README.md

traveller195 commented 1 year ago

done: login via psql

psql "host={hostname} user={username} port={port} sslmode=require dbname=postgres"

dbname 'dresdendb' already exists

check extensions:

> create extension postgis;
> create extension pgcrypto;
> create extension pg_trgm;

navigat to /migrations ls ./*.up.sql 2>/dev/null | while read -r migration; do psql < $migration; done;

traveller195 commented 1 year ago

take care, that after inserting buildings and geometries data... the INDEX must be calculated again (first .down.sql , after .up.sql)

see https://github.com/colouring-cities/colouring-dresden/issues/20