Search documentation of phoenix_kit

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

View Source

PhoenixKit V06 Migration: Allow NULL Expiration Dates for Referral Codes

This migration allows referral codes to have no expiration date by making the expiration_date field nullable. This enables the creation of permanent referral codes that never expire.

## Changes

### Referral Codes Enhancement

- Modifies expiration_date column to allow NULL values
- Enables creation of permanent referral codes
- Maintains backward compatibility with existing dated codes
- Supports "never expires" functionality

## PostgreSQL Support

- Supports PostgreSQL prefix for schema isolation
- Safe column modification with rollback support

# Summary

## Functions

down(opts)
up(opts)

Run the V06 migration to allow NULL expiration dates.

# Functions

# down(opts)

# up(opts)

Run the V06 migration to allow NULL expiration dates.