migrate

command
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Command migrate is the database migration CLI. It loads configuration from environment (with godotenv autoload) and dispatches to the corresponding function in platform/database:

migrate up              Run all pending migrations.
migrate down            Roll back the last migration.
migrate version         Print the current migration version and dirty flag.
migrate force <version> Pin the migration version without running migrations
                        (use only to recover from a dirty state).

The migrations themselves are embedded SQL files under platform/database/migrations and are shared with the API server's boot path; this CLI exists for operational control — applying, inspecting, or recovering schema state without starting the full server.

Jump to

Keyboard shortcuts

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