migrate

command
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command migrate applies the kernel migrations to the database named by DATABASE_URL — the framework repo's local/CI migration runner behind `make migrate`. Product repositories get a real cmd/migrate process via app.RunMigrate (Phase 5+); this private tool exists so the compose stack can be migrated without one.

SECURITY: this tool intentionally connects as the raw DATABASE_URL login (the local compose superuser) and uses config.Defaults() — acceptable ONLY because it is a dev/CI convenience. Product code (app.RunMigrate) MUST use the dedicated app_migrate owner DSN from the narrowed MigrateConfig and MUST NOT copy this DATABASE_URL/Defaults() shortcut (SEC-15).

Jump to

Keyboard shortcuts

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