Documentation
¶
Overview ¶
Package migrations owns ContentKit's PostgreSQL and ClickHouse migrations.
Index ¶
- Variables
- func ApplyAccounts(ctx context.Context, db *sql.DB, schema string) error
- func ApplyPostgres(ctx context.Context, db *sql.DB, schema string) error
- func ValidateAccounts(ctx context.Context, db *sql.DB, schema string) error
- func ValidatePostgres(ctx context.Context, db *sql.DB, schema string) error
Constants ¶
This section is empty.
Variables ¶
var Accounts fs.FS = mustSubFS("accounts")
Accounts records ownership claims in the effective shared account schema. It is a separate lineage because apps can use different catalog schemas.
var ClickHouse fs.FS = mustSubFS("clickhouse")
ClickHouse installs the signal-plane tables in the selected database.
var Postgres fs.FS = mustSubFS("postgres")
Postgres installs ContentKit's tables in its own schema.
Functions ¶
func ApplyAccounts ¶ added in v0.90.0
ApplyAccounts installs account ownership metadata without moving inbox rows or media objects. The identity claim itself joins the app binding transaction.
func ApplyPostgres ¶ added in v0.14.0
ApplyPostgres applies ContentKit's migrations in its schema under its ledger identity and migration lock (contentkit.New calls it).
func ValidateAccounts ¶ added in v0.90.0
ValidateAccounts is the read-only counterpart of ApplyAccounts.
Types ¶
This section is empty.