iftechfoundation / ifdb-suggestion-tracker

Bugs and feature requests for a future IFDB update
10 stars 0 forks source link

Update README with instructions on how to run patch-schema.sql scripts #435

Closed salty-horse closed 5 months ago

salty-horse commented 6 months ago

Some of the recent changes to the database aren't in the development environment's database dump, so they were added into patch-schema*.sql scripts.

Are those supposed to be applied automatically, or manually? It doesn't seem to happen automatically, unless I'm missing an obvious step.

dfabulich commented 6 months ago

You have to re-run ./prepare_dev_environment.sh. But it should work at that point

salty-horse commented 6 months ago

That definitely doesn't work for me. When are the scripts in initdb/ supposed to be executed?

dfabulich commented 6 months ago

To be clear, here's how I run it:

./prepare_dev_environment.sh && docker compose down && docker compose up --build

The scripts in initdb are meant to be run when you docker compose up after running docker compose down.

salty-horse commented 5 months ago

That worked for me, thanks.