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.
Click to show internal directories.
Click to hide internal directories.