Skip to content

Run database migrations before Worker deploys - #166

Merged
asselstine merged 1 commit into
mainfrom
fix/deploy-database-migrations
Sep 18, 2026
Merged

asselstine merged 1 commit into
mainfrom
fix/deploy-database-migrations

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Summary

  • apply PostgreSQL migrations before deploying the application Worker
  • use the protected production DATABASE_URL environment secret
  • prevent application code from deploying ahead of its required schema

Verification

  • production migration 0003_incremental_trace_ingestion applied successfully
  • npm run check --workspace=factorize (147 tests and Worker dry run)

Required configuration

The GitHub production environment must define DATABASE_URL. The attached integration cannot create environment secrets (GitHub returns 403), so this must be added by a repository administrator before merging.

@github-actions
github-actions Bot enabled auto-merge September 18, 2026 19:31
@asselstine
asselstine disabled auto-merge September 18, 2026 19:34
@asselstine
asselstine added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit 8418c42 Sep 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant