Search documentation of phoenix_kit

# PhoenixKit.Migrations.Postgres.V04 (phoenix_kit v1.6.19)

View Source

PhoenixKit V04 Migration: Settings Module Column + Referral System

This migration adds modular settings support and implements the referral system for enhanced user management and feature organization.

## Changes

### Settings Table Enhancement

- Adds module column to phoenix_kit_settings table for feature-specific settings
- Updates existing settings with appropriate module associations
- Maintains backward compatibility with existing settings

### Referral System

- Adds phoenix_kit_referral_codes table for managing referral codes
- Adds phoenix_kit_referral_code_usage table for tracking code usage
- Supports referral code creation, validation, and usage tracking
- Integrates with settings system for referral-specific configuration

## PostgreSQL Support

- Supports PostgreSQL prefix for schema isolation
- Proper foreign key relationships and constraints
- Optimized indexes for performance

# Summary

## Functions

down(opts)
up(opts)

Run the V04 migration to add module column and referral system.

# Functions

# down(opts)

# up(opts)

Run the V04 migration to add module column and referral system.