apollo-backend/script/migrate

11 lines
198 B
Text
Raw Normal View History

2021-05-10 00:51:15 +00:00
#!/bin/sh
set -e
cd "$(dirname "$0")/.."
2021-07-05 23:10:09 +00:00
DATABASE_URL=postgres://apollo:@localhost/apollo?sslmode=disable
2021-05-10 00:51:15 +00:00
2021-07-05 23:10:09 +00:00
echo "===> Running migrations..."
migrate -path=./migrations -database=$DATABASE_URL up