Skip to content

Conversation

@IiroP
Copy link

@IiroP IiroP commented Aug 25, 2025

What

Add --check flag to migrate:create on Postgres adapter. When the flag is applied, the command only checks if migrations are needed without actually creating new migrations.

  • If schema is up-to-date and migrations are not needed, the command exits with code 0.
  • If new migrations are needed, the command prints "Schema changes detected, a new migration is needed" and exits with code 1.

Why

This is useful for creating CI checks. There has been discussion about this at least in #10978.

@github-actions github-actions bot added the stale label Sep 26, 2025
@IiroP
Copy link
Author

IiroP commented Oct 7, 2025

At least most of the CI errors seem to be npm timeouts, could someone try running them again or is there something I should do?

@github-actions github-actions bot removed the stale label Oct 12, 2025
@github-actions github-actions bot added the stale label Nov 16, 2025
- Add `--check` flag to `migrate:create` on Postgres. When the flag is applied, the command only checks if migrations are needed without actually creating new migrations.
  - This is useful for creating CI checks.
@IiroP IiroP force-pushed the feat/add-postgres-migrate-check branch from 4954499 to 65ee9d0 Compare December 16, 2025 07:49
@jhb-dev
Copy link
Contributor

jhb-dev commented Dec 16, 2025

This is exactly what I needed as well. Thanks for the PR!

@github-actions github-actions bot removed the stale label Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants