PhoenixKitEntities.Migrations.V1 (PhoenixKitEntities v0.1.5)

Copy Markdown View Source

Consolidated migration for the PhoenixKit Entities module.

Creates the phoenix_kit_entities and phoenix_kit_entity_data tables with their final schema (UUIDv7 primary keys, timestamptz columns, all indexes).

All operations use IF NOT EXISTS / idempotent guards so this migration is safe to run even if the tables already exist from PhoenixKit core migrations.

Tables

phoenix_kit_entities

Entity definitions (content type blueprints) with JSONB field schemas.

phoenix_kit_entity_data

Entity data records (instances) with JSONB field values.

Settings Seeds

Inserts default entities-related settings if not already present.

Summary

Functions

down(opts)

up(opts)