-
Create a file containing your upgrade script - e.g. new.sql
-
Add your upgrade script:
sem-add new.sql
-
(Optional) Apply your new script localy
docker-compose up docker exec nhlpoolhelper-db sh /db/apply.sh
-
Send a Pull Request! :)
- Add the upgrade script (see steps 1 & 2 of the previous section)
- Build an image
sh ./build.sh
- In dc.dev.yml, update the db image to use: frrocc/db:latest
- Run nhlpoolhelper-api:
npm run dev
- Run
docker exec nhlpoolhelper_db /bin/sh /db/apply.sh
=
- Use psql and enter devpass as password
docker exec -it nhlpoolhelper-db psql -U dev -W dev