Skip to content

Commit

Permalink
chore: Ensure sqlx is present for migrations (#24893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Sep 11, 2024
1 parent f1e7601 commit cf98baf
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 @@ -6,5 +6,7 @@ CYCLOTRON_DATABASE_URL=${CYCLOTRON_DATABASE_URL:-postgres://posthog:posthog@loca

echo "Performing cyclotron migrations for $CYCLOTRON_DATABASE_URL (DATABASE_NAME=$CYCLOTRON_DATABASE_NAME)"

cargo install sqlx-cli

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

0 comments on commit cf98baf

Please sign in to comment.