Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database setup: extensions and migrations up #22

Closed
traveller195 opened this issue Feb 18, 2023 · 2 comments
Closed

Database setup: extensions and migrations up #22

traveller195 opened this issue Feb 18, 2023 · 2 comments

Comments

@traveller195
Copy link
Contributor

Database setup: extensions and migrations up
compare:

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

@traveller195
Copy link
Contributor Author

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
Copy link
Contributor Author

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

see #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant