Skip to content

Commit

Permalink
tooling: add make migrations back
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaKeks committed Jan 18, 2024
1 parent 01e969d commit 89dbd5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ db:
@echo "Starting database container..."
@docker compose up -d --wait cs2kz-database

migrations:
@sqlx migrate run \
--source ./database/migrations/ \
--database-url $(DATABASE_URL)

db-clean:
docker compose down -t 1 cs2kz-database
rm -rf ./database/volumes/cs2kz
Expand Down Expand Up @@ -47,6 +52,7 @@ sqlx-cache:
--database-url $(DATABASE_URL)

dev:
make migrations
cargo run -p cs2kz-api

dev-debug:
Expand Down

0 comments on commit 89dbd5f

Please sign in to comment.