aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
blob: c13a65239bda5e3cb2120b51899bf19b7a7b1876 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2024-01-13

### Added

- Support for environment variables to configure bolt. You may now use the TOML configuration file and/or environment variables to specify the configuration options. The environment variables will take precedence over any values set in the TOML configuration file.

  New environment variables
  - `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`

- Support for Windows when looking up the user's bolt configuration file.
  Previously, as the filesystem was traversed, it would look for "/" as the
  root directory.

- `bolt down` command to enable rollback of all migrations or optionally to a specific version.

- `bolt up` now supports a `-v` or `-version` flag which allows upgrading to a specific version.

- `bolt version` command to display the current version of bolt.
  
- Support for executing migration scripts without a transaction. Use `-- bolt: no-transaction` as the first line of your migration script to disable transactions for that migration.

### Changed

- `bolt_migrations` `version` column is now 14 characters long instead of 32.

- `bolt migrate` has been renamed to `bolt up`.
  
- `bolt list` has been renamed to `bolt status`.
  
- `bolt create` has been renamed to `bolt new`.

- The `up` command will now exit with a status code of 1
  if it encounters an error while running a migration. Previously,
  it was silently failing.

- `bolt status` output has been updated to be a tabular format.

- `[connection]` in `bolt.toml` should now be `[bolt.db.connection]`.

- `migrations_dir` in `bolt.toml` should now be in a `[bolt.migrations]` section and should now be called `directory_path`.
  
## [0.1.0] - 2023-12-30

### Added

- Initial release

<!-- template
## [X.Y.Z] - YYYY-MM-DD
### Added
- for new features.
### Changed
- for changes in existing functionality.
### Deprecated
- for soon-to-be removed features.
### Removed
- for now removed features.
### Fixed
- for any bug fixes.
### Security
- in case of vulnerabilities.
-->