dbmate 2.26.0 → 2.28.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 +9 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -244,6 +244,15 @@ To specify an absolute path, add a forward slash to the path. The following will
244
244
  DATABASE_URL="sqlite:/tmp/database.sqlite3"
245
245
  ```
246
246
 
247
+ Note that for some common [settings](https://sqlite.org/pragma.html) like `journal_mode` to improve performance, transactions need to be disabled for that migration file, e.g.
248
+
249
+ ```sql
250
+ -- migrate:up transaction:false
251
+ PRAGMA journal_mode = WAL;
252
+ ```
253
+
254
+ Otherwise the migration will fail with "Error: cannot change into wal mode from within a transaction".
255
+
247
256
  #### ClickHouse
248
257
 
249
258
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbmate",
3
- "version": "2.26.0",
3
+ "version": "2.28.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.26.0",
28
- "@dbmate/linux-x64": "2.26.0",
29
- "@dbmate/linux-arm": "2.26.0",
30
- "@dbmate/linux-arm64": "2.26.0",
31
- "@dbmate/darwin-x64": "2.26.0",
32
- "@dbmate/darwin-arm64": "2.26.0",
33
- "@dbmate/win32-x64": "2.26.0"
27
+ "@dbmate/linux-ia32": "2.28.0",
28
+ "@dbmate/linux-x64": "2.28.0",
29
+ "@dbmate/linux-arm": "2.28.0",
30
+ "@dbmate/linux-arm64": "2.28.0",
31
+ "@dbmate/darwin-x64": "2.28.0",
32
+ "@dbmate/darwin-arm64": "2.28.0",
33
+ "@dbmate/win32-x64": "2.28.0"
34
34
  }
35
35
  }