PhoenixKit.Migrations.Postgres.V73 (phoenix_kit v1.7.71)

Copy Markdown View Source

V73: Pre-drop prerequisites for Category B tables.

Prepares Category B tables for the eventual DROP COLUMN id (V74) by:

  1. SET NOT NULL on 7 uuid columns that currently allow NULLs
  2. CREATE UNIQUE INDEX on 3 tables missing unique indexes on uuid
  3. ALTER INDEX RENAME on 4 indexes to match renamed columns

All operations are idempotent — safe to re-run.

Summary

Functions

down(opts)

up(opts)