migrations

package
v0.90.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package migrations owns ContentKit's PostgreSQL and ClickHouse migrations.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var ClickHouse fs.FS = mustSubFS("clickhouse")

ClickHouse installs the signal-plane tables in the selected database.

View Source
var Postgres fs.FS = mustSubFS("postgres")

Postgres installs ContentKit's tables in its own schema.

Functions

func ApplyAccounts added in v0.90.0

func ApplyAccounts(ctx context.Context, db *sql.DB, schema string) error

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

func ApplyPostgres(ctx context.Context, db *sql.DB, schema string) error

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

func ValidateAccounts(ctx context.Context, db *sql.DB, schema string) error

ValidateAccounts is the read-only counterpart of ApplyAccounts.

func ValidatePostgres added in v0.90.0

func ValidatePostgres(ctx context.Context, db *sql.DB, schema string) error

ValidatePostgres checks the catalog lineage without creating its schema or migration ledger. Runtime credentials only need read access to the ledger.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL