PhoenixKit.Migrations.Postgres.V44 (phoenix_kit v1.7.33)

Copy Markdown View Source

PhoenixKit V44 Migration: Rename DB Sync tables to Sync

This migration renames the DB Sync tables and indexes to match the module rename from DBSync to Sync.

Changes

Table Renames

  • phoenix_kit_db_sync_connectionsphoenix_kit_sync_connections
  • phoenix_kit_db_sync_transfersphoenix_kit_sync_transfers

Index Renames

All indexes are renamed to match the new table names.

Setting Key Renames

  • db_sync_enabledsync_enabled
  • db_sync_incoming_modesync_incoming_mode
  • db_sync_incoming_passwordsync_incoming_password

Backwards Compatibility

This is a breaking change for existing installations. The migration handles the rename automatically, but any raw SQL queries referencing the old table names will need to be updated.

Summary

Functions

Rollback the V44 migration (rename back to old names).

Run the V44 migration to rename Sync tables.

Functions

down(opts)

Rollback the V44 migration (rename back to old names).

up(opts)

Run the V44 migration to rename Sync tables.