migrations

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Counter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "tikti_migration_0007_records_total",
		Help: "Number of user records processed by migration 0007.",
	},
	[]string{"result"},
)

Counter records the number of user records processed during migration 0007.

Functions

func Down

func Down(ctx context.Context, rdb redis.Cmdable) error

Down removes the authSource and externalSubject fields from all user records, restoring them to their pre-migration state. This is the manual rollback procedure and is never executed automatically.

func Run

Run iterates all user records in the users_v2 hash with HSCAN COUNT 500, sets authSource=password and externalSubject="" on records where those fields are absent, and emits Prometheus counters per 1000 records.

Types

This section is empty.

Jump to

Keyboard shortcuts

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