diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -49,6 +49,7 @@ Bolt is a command-line tool designed to simplify and streamline your database mi - [`bolt up`](#bolt-up) - [`bolt down`](#bolt-down) - [`bolt status`](#bolt-status) + - [`bolt version`](#bolt-version) - [Script Execution Options](#script-execution-options) - [Explanation](#explanation) - [How Are Migration Scripts Executed?](#how-are-migration-scripts-executed) @@ -258,6 +259,12 @@ or in any parent directory. # the current working directory. You may also use an absolute # path. directory_path = "migrations" +# The migration versioning style you prefer. Supported options +# are "timestamp" and "sequential". Defaults to "timestamp". +# +# Note: It is not supported to change migration version styles +# once one is picked and migrations have been applied. +version_style = "timestamp" # Connection parameters for the database Bolt will be # applying migrations to. All connection parameters are @@ -284,6 +291,7 @@ driver = All configuration file settings have corresponding environment variables. - `BOLT_MIGRATIONS_DIR_PATH` +- `BOLT_MIGRATIONS_VERSION_STYLE` - `BOLT_DB_CONN_HOST` - `BOLT_DB_CONN_PORT` - `BOLT_DB_CONN_USER` @@ -337,6 +345,14 @@ status: List the database migrations and their statuses ``` +#### `bolt version` + +```bash +$ bolt help version +version: + Show the current version of Bolt +``` + ### Script Execution Options Bolt provides a way for you to customize how your migration scripts are executed if you need something different than the default behavior. |