Migrates the PhoenixKit blogging module to the new publishing module.
What this task does
Migrates settings keys from legacy names to new names:
blogging_enabled→publishing_enabledblogging_blogs→publishing_groupsblogging_memory_cache_enabled→publishing_memory_cache_enabledblogging_render_cache_enabled→publishing_render_cache_enabledblogging_render_cache_enabled_*→publishing_render_cache_enabled_*
Usage
mix phoenix_kit.migrate_blogging_to_publishing
mix phoenix_kit.migrate_blogging_to_publishing --dry-run
mix phoenix_kit.migrate_blogging_to_publishing --verboseOptions
--dry-run- Shows what would be changed without making any changes--verbose- Shows detailed output of each operation
Safety
This task is idempotent - it's safe to run multiple times:
- If
priv/publishingalready exists, directory rename is skipped - If new settings keys already have values, those values are preserved
- Legacy settings are not deleted (kept for backward compatibility)
Rollback
To rollback, manually:
- Rename
priv/publishingback topriv/blogging - The application will automatically read from legacy settings keys