# `mix phoenix_ai_store.gen.migration`
[🔗](https://github.com/franciscpd/phoenix-ai-store/blob/v0.1.0/lib/mix/tasks/phoenix_ai_store.gen.migration.ex#L1)

Generates a migration file for the PhoenixAI.Store tables.

    $ mix phoenix_ai_store.gen.migration

For existing installations that need to add Long-Term Memory tables:

    $ mix phoenix_ai_store.gen.migration --ltm

For existing installations that need to add Cost Tracking tables:

    $ mix phoenix_ai_store.gen.migration --cost

For existing installations that need to add Event Log tables:

    $ mix phoenix_ai_store.gen.migration --events

## Options

  * `--prefix` - Table name prefix (default: `phoenix_ai_store_`)
  * `--migrations-path` - Output directory (default: `priv/repo/migrations`)
  * `--ltm` - Generate only the Long-Term Memory tables (facts, profiles)
  * `--cost` - Generate only the Cost Tracking tables (cost_records)
  * `--events` - Generate only the Event Log tables (events)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
