opsmate db-migrate
db-migrate
is used to update the sqlite database that powers the opsmate to the latest version. By default it migrates the database to the latest version.
USAGE
Usage: opsmate db-migrate [OPTIONS]
Apply migrations.
Options:
-r, --revision TEXT Revision to upgrade to [default: head]
--help Show this message and exit.
EXAMPLES
Migrating to the latest version
opsmate db-migrate
Migrating to a specific version
opsmate db-migrate --revision <revision>
To list all the versions available, run opsmate db-revisions
.
SEE ALSO
OPTIONS
Usage: opsmate db-migrate [OPTIONS]
Apply migrations.
Options:
-r, --revision TEXT Revision to upgrade to [default: head]
--help Show this message and exit.