Skip to content

ci: update migration command in CI workflow and package.json#3

Merged
Adjanour merged 1 commit intomasterfrom
chore/ci-changes
Feb 24, 2026
Merged

ci: update migration command in CI workflow and package.json#3
Adjanour merged 1 commit intomasterfrom
chore/ci-changes

Conversation

@Adjanour
Copy link
Copy Markdown
Contributor

This pull request updates the database migration workflow for continuous integration (CI) to use a direct schema push instead of running migrations. The main goal is to ensure the database schema in CI always matches the current codebase, avoiding issues with migration history.

CI Workflow Updates:

  • Changed the CI workflow in .github/workflows/ci.yml to use the new db:push:ci script, which force-pushes the schema to the database instead of running migrations.

Database Script Changes:

  • Updated packages/db/package.json to replace the db:migrate:ci script (which ran drizzle-kit migrate) with db:push:ci, which runs drizzle-kit push --force to overwrite the schema in CI environments.

Copilot AI review requested due to automatic review settings February 24, 2026 15:23
@Adjanour Adjanour merged commit 18f6c7a into master Feb 24, 2026
3 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request aligns the CI database setup workflow with the project's established push-based schema deployment strategy. Instead of running migration files, the CI workflow now directly pushes the schema to the test database, matching the pattern used in the regular db:migrate command.

Changes:

  • Replaced db:migrate:ci script (which used drizzle-kit migrate) with db:push:ci (which uses drizzle-kit push --force)
  • Updated CI workflow to call the new db:push:ci script

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/db/package.json Replaces the db:migrate:ci script with db:push:ci using drizzle-kit push --force for CI environments
.github/workflows/ci.yml Updates the migration step to use the new db:push:ci script instead of db:migrate:ci
Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:62

  • The step name "Run migrations" is now misleading since the command has been changed from running migrations to force-pushing the schema. Consider updating the step name to better reflect what it does, such as "Push database schema" or "Initialize database schema".
      - name: Run migrations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants