From 34702d3802c8eb08cf4440c0cbb939b1db45168d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 13 Jan 2024 21:47:26 -0500 Subject: Update configuration format and env names --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b83d3b9..e89e4f4 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ $ touch bolt.toml 2. Add the following contents to the file: ```toml -[connection] +[bolt.db.connection] host = "localhost" port = 5432 user = "bolt_user" @@ -230,16 +230,17 @@ Bolt attempts to find a `bolt.toml` file in your current working directory or in any parent directory. ```toml +[bolt.migrations] # The directory where your migration scripts are located. # Defaults to "migrations". This directory is relative to # the current working directory. You may also use an absolute # path. -migrations_dir = "migrations" +directory_path = "migrations" # Connection parameters for the database Bolt will be # applying migrations to. All connection parameters are # required. -[connection] +[bolt.db.connection] # The host to use to connect to your database. host = # The port to use to connect to your database. @@ -260,13 +261,13 @@ driver = All configuration file settings have corresponding environment variables. -- `BOLT_MIGRATIONS_DIR` -- `BOLT_CONNECTION_HOST` -- `BOLT_CONNECTION_PORT` -- `BOLT_CONNECTION_USER` -- `BOLT_CONNECTION_PASSWORD` -- `BOLT_CONNECTION_DBNAME` -- `BOLT_CONNECTION_DRIVER` +- `BOLT_MIGRATIONS_DIR_PATH` +- `BOLT_DB_CONN_HOST` +- `BOLT_DB_CONN_PORT` +- `BOLT_DB_CONN_USER` +- `BOLT_DB_CONN_PASSWORD` +- `BOLT_DB_CONN_DBNAME` +- `BOLT_DB_CONN_DRIVER` ### Commands @@ -299,7 +300,7 @@ up [-version|-v]: ```bash $ bolt help up down [-version|-v]: - Downgrade migrations against the database. + Downgrade migrations against the database -v string alias for -version -version string -- cgit v1.2.3