Search documentation of phoenix_kit

# PhoenixKit.Install.MigrationStrategy (phoenix_kit v1.6.19)

View Source

Handles migration strategy determination and execution for PhoenixKit installation.

This module provides functionality to:

- Determine whether installation is new, upgrade, or up-to-date
- Create initial migration files
- Handle interactive migration prompts
- Generate appropriate migration notices

# Summary

## Functions

create_phoenix_kit_migration_only(igniter, opts)

Creates PhoenixKit migration without interactive prompts (used by igniter).

handle_interactive_migration_after_config(opts \\ [])

Handles interactive migration after configuration changes are complete.

# Functions

# create_phoenix_kit_migration_only(igniter, opts)

Creates PhoenixKit migration without interactive prompts (used by igniter).

## Parameters

- `igniter` - The igniter context
- `opts` - Installation options including prefix and create_schema

## Returns

Updated igniter with migration files created or appropriate notices.

# handle_interactive_migration_after_config(opts \\ [])

Handles interactive migration after configuration changes are complete.

This function is called outside of the Igniter context to prompt for migration execution and handle the results.