Skip to content

Releases: kasapdev/php-migration-runner

v1.2.0

Choose a tag to compare

@kasapdev kasapdev released this 07 Sep 20:03

Added

  • MigrationRunner::migrate(bool $dryRun = false) — pass dryRun: true to
    find out which migrations would be applied without running them. In
    dry-run mode up() is never called, no rows are written to the tracking
    table, and the tracking table isn't even created if it doesn't already
    exist. Returns the same string[] shape as a real run, so callers get a
    symmetrical preview/confirm API.
  • README "Dry-Run Mode" section with a runnable example, plus an expanded
    Usage section covering a full deploy-script example.
  • New test coverage proving a dry run leaves the target tables and the
    tracking table completely untouched, and that a subsequent real
    migrate() call applies everything normally.

See CHANGELOG.md for details.

v1.1.0

Choose a tag to compare

@kasapdev kasapdev released this 06 Sep 01:23

Adds edge-case regression tests: partial-batch behavior and exception chaining on a failing up()/down(), batch number increments across separate migrate() calls, and rollback() against a deleted migration file. No behavioral changes; all tests pass.

v1.0.0

Choose a tag to compare

@kasapdev kasapdev released this 05 Sep 23:41

Initial stable release.