talos migrate up
talos migrate up
Run all pending migrations
Synopsis
Apply all pending migrations to the database.
The database connection string can be provided via:
- DB_DSN environment variable
- --database flag (overrides DB_DSN)
talos migrate up [flags]
Examples
# SQLite
talos migrate up --database "sqlite3://./data/talos.db"
# PostgreSQL (commercial)
export DB_DSN="postgres://user:pass@localhost:5432/talos?sslmode=disable"
talos migrate up
# MySQL (commercial)
talos migrate up --database "mysql://user:pass@tcp(localhost:3306)/talos"
# CockroachDB (commercial)
talos migrate up --database "cockroach://user:pass@localhost:5432/talos?sslmode=disable"
Options
--database string database DSN (overrides DB_DSN)
-h, --help help for up
Options inherited from parent commands
--config string config file (default is $HOME/.talos.yaml or ./config.yaml)
-e, --endpoint string HTTP server base URL including scheme, e.g. http://host:port (for client commands) (default "http://localhost:4420")
See also
- talos migrate Database migration tools
