mix phoenix_flags.upgrade (PhoenixFlags v0.9.0)

Copy Markdown View Source

Applies per-version upgrade steps for PhoenixFlags.

Not invoked directly — mix igniter.upgrade phoenix_flags composes this task automatically, passing <from> <to> versions. For each version bump between from and to, the matching upgrader runs (e.g. generating a new migration).

Upgrade steps

  • 0.5.0 — generates a migration that calls PhoenixFlags.Migration.up(version: 2), adding the system_flags_audit table used by the audit log and enabling the :secret flag type.
  • 0.6.0 — generates a migration that calls PhoenixFlags.Migration.up(version: 3), widening the value columns from varchar(255) to text (encrypted secrets easily exceed 255 characters) and moving the schema version into the new system_flags_meta table.
  • 0.9.0 — generates a migration that calls PhoenixFlags.Migration.up(version: 4), adding the system_flag_targets and system_flag_target_conditions tables used by targeting rules.