Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Sep 5, 2024
1 parent 4a53ac1 commit 4e9ea89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/bin/migrate-cyclotron
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
export DATABASE_NAME=${DATABASE_NAME:-cyclotron}
export DATABASE_URL=${DATABASE_URL:-postgres://posthog:posthog@localhost:5432/$DATABASE_NAME}

echo "Performing cyclotron migrations for $DATABASE_URL"

sqlx database create -D "$DATABASE_URL"
sqlx migrate run -D "$DATABASE_URL" --source $SCRIPT_DIR/../cyclotron-core/migrations

0 comments on commit 4e9ea89

Please sign in to comment.