Accrue.Migration (accrue v1.5.0)

Copy Markdown View Source

Helpers for Accrue-owned migrations.

The host owns the Repo, but Accrue owns its billing tables. These helpers keep migration prefixes and raw SQL table qualification aligned with config :accrue, :billing_schema.

Summary

Functions

billing_prefix()

create_billing_schema()

index(table, columns, opts \\ [])

qualified_name(prefix, name)

qualified_table(name)

quote_identifier(identifier)

references(name, opts \\ [])

table(name, opts \\ [])

unique_index(table, columns, opts \\ [])