dbmate 2.20.0 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -9
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -60,8 +60,8 @@ For a comparison between dbmate and other popular database schema migration tool
60
60
  Install using [NPM](https://www.npmjs.com/):
61
61
 
62
62
  ```sh
63
- $ npm install --save-dev dbmate
64
- $ npx dbmate --help
63
+ npm install --save-dev dbmate
64
+ npx dbmate --help
65
65
  ```
66
66
 
67
67
  **macOS**
@@ -69,7 +69,8 @@ $ npx dbmate --help
69
69
  Install using [Homebrew](https://brew.sh/):
70
70
 
71
71
  ```sh
72
- $ brew install dbmate
72
+ brew install dbmate
73
+ dbmate --help
73
74
  ```
74
75
 
75
76
  **Linux**
@@ -77,8 +78,9 @@ $ brew install dbmate
77
78
  Install the binary directly:
78
79
 
79
80
  ```sh
80
- $ sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
81
- $ sudo chmod +x /usr/local/bin/dbmate
81
+ sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
82
+ sudo chmod +x /usr/local/bin/dbmate
83
+ /usr/local/bin/dbmate --help
82
84
  ```
83
85
 
84
86
  **Windows**
@@ -86,7 +88,8 @@ $ sudo chmod +x /usr/local/bin/dbmate
86
88
  Install using [Scoop](https://scoop.sh)
87
89
 
88
90
  ```pwsh
89
- $ scoop install dbmate
91
+ scoop install dbmate
92
+ dbmate --help
90
93
  ```
91
94
 
92
95
  **Docker**
@@ -96,13 +99,13 @@ Docker images are published to GitHub Container Registry ([`ghcr.io/amacneil/dbm
96
99
  Remember to set `--network=host` or see [this comment](https://github.com/amacneil/dbmate/issues/128#issuecomment-615924611) for more tips on using dbmate with docker networking):
97
100
 
98
101
  ```sh
99
- $ docker run --rm -it --network=host ghcr.io/amacneil/dbmate --help
102
+ docker run --rm -it --network=host ghcr.io/amacneil/dbmate --help
100
103
  ```
101
104
 
102
105
  If you wish to create or apply migrations, you will need to use Docker's [bind mount](https://docs.docker.com/storage/bind-mounts/) feature to make your local working directory (`pwd`) available inside the dbmate container:
103
106
 
104
107
  ```sh
105
- $ docker run --rm -it --network=host -v "$(pwd)/db:/db" ghcr.io/amacneil/dbmate new create_users_table
108
+ docker run --rm -it --network=host -v "$(pwd)/db:/db" ghcr.io/amacneil/dbmate new create_users_table
106
109
  ```
107
110
 
108
111
  ## Commands
@@ -401,7 +404,7 @@ dbmate supports options passed to a migration block in the form of `key:value` p
401
404
 
402
405
  **transaction**
403
406
 
404
- `transaction` is useful if you need to run some SQL which cannot be executed from within a transaction. For example, in Postgres, you would need to disable transactions for migrations that alter an enum type to add a value:
407
+ `transaction` is useful if you do not want to run SQL inside a transaction:
405
408
 
406
409
  ```sql
407
410
  -- migrate:up transaction:false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbmate",
3
- "version": "2.20.0",
3
+ "version": "2.22.0",
4
4
  "description": "A lightweight, framework-agnostic database migration tool",
5
5
  "repository": "https://github.com/amacneil/dbmate",
6
6
  "homepage": "https://github.com/amacneil/dbmate#readme",
@@ -24,12 +24,12 @@
24
24
  "build": "tsc --build"
25
25
  },
26
26
  "optionalDependencies": {
27
- "@dbmate/linux-ia32": "2.20.0",
28
- "@dbmate/linux-x64": "2.20.0",
29
- "@dbmate/linux-arm": "2.20.0",
30
- "@dbmate/linux-arm64": "2.20.0",
31
- "@dbmate/darwin-x64": "2.20.0",
32
- "@dbmate/darwin-arm64": "2.20.0",
33
- "@dbmate/win32-x64": "2.20.0"
27
+ "@dbmate/linux-ia32": "2.22.0",
28
+ "@dbmate/linux-x64": "2.22.0",
29
+ "@dbmate/linux-arm": "2.22.0",
30
+ "@dbmate/linux-arm64": "2.22.0",
31
+ "@dbmate/darwin-x64": "2.22.0",
32
+ "@dbmate/darwin-arm64": "2.22.0",
33
+ "@dbmate/win32-x64": "2.22.0"
34
34
  }
35
35
  }