migrate

command
v0.0.0-...-ab78138 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Command migrate applies database migrations to the LevelMix Turso database.

Usage:

migrate                 # same as "up"
migrate up              # apply all pending migrations
migrate up-by-one       # apply the next pending migration only
migrate status          # show applied/pending (replaces the old --dry-run)
migrate version         # show current DB version
migrate down            # roll back the most recent migration
migrate create <name> sql
migrate -prod up        # required when the target is not a dev database

Credentials come from TURSO_DB_URL and TURSO_AUTH_TOKEN, loaded from .env.dev then .env if present, otherwise from the process environment. Flags must precede the subcommand.

Jump to

Keyboard shortcuts

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