Search documentation of phoenix_kit

# mix phoenix_kit.gen.migration (phoenix_kit v1.7.87)

Copy Markdown View Source

Generate a PhoenixKit versioned migration for the parent application.

Scans existing migrations in `priv/repo/migrations/` to determine the current PhoenixKit version, then generates a migration that upgrades to the latest version.

## Usage

    mix phoenix_kit.gen.migration

## Options

- `--prefix` - Database schema prefix (default: "public")

## Examples

    # Generate upgrade migration with default prefix
    mix phoenix_kit.gen.migration

    # Generate with custom schema prefix
    mix phoenix_kit.gen.migration --prefix my_schema