PHPackages                             gevman/yiisoft-db-migration-dry-run - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. gevman/yiisoft-db-migration-dry-run

ActiveLibrary[Database &amp; ORM](/categories/database)

gevman/yiisoft-db-migration-dry-run
===================================

Dry-run SQL preview command for yiisoft/db-migration

1.0.0(2w ago)00MITPHPPHP ^8.1

Since Mar 6Pushed 2w agoCompare

[ Source](https://github.com/gevorgmansuryan/yiisoft-db-migration-dry-run)[ Packagist](https://packagist.org/packages/gevman/yiisoft-db-migration-dry-run)[ RSS](/packages/gevman-yiisoft-db-migration-dry-run/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (1)Used By (0)

yiisoft-db-migration-dry-run
============================

[](#yiisoft-db-migration-dry-run)

Adds `--dry-run` support to `yiisoft/db-migration` `migrate:up`.

What it does
------------

[](#what-it-does)

- Extends `migrate:up` with:
    - `--dry-run`
    - `--include-introspection`
- Prints SQL preview without applying migrations.
- Keeps dry-run output concise by hiding migration list/progress noise.
- Filters migration history and schema-introspection queries by default.

Install
-------

[](#install)

Yii project:

```
composer require gevman/yiisoft-db-migration-dry-run
```

Standalone, non-Yii project:

```
composer require yiisoft/db-migration yiisoft/db-mysql yiisoft/cache
composer require gevman/yiisoft-db-migration-dry-run
```

Yii3 integration
----------------

[](#yii3-integration)

Map `migrate:up` to package command in your console command config:

```
