migrations

package
v0.58.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package migrations owns ContentKit's PostgreSQL and ClickHouse baselines.

Index

Constants

This section is empty.

Variables

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 all content, keyword and taxonomy tables in one host schema.

Functions

func ApplyPostgres added in v0.14.0

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

ApplyPostgres installs the complete baseline in schema and records it under the contentkit ledger identity. The schema may also hold the host's tables. Repeating the initializer preserves existing data and migration identity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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