dbmate 2.16.0 → 2.18.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.
- package/README.md +13 -9
- package/dist/resolveBinary.js +1 -2
- package/dist/resolveBinary.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -41,15 +41,16 @@ For a comparison between dbmate and other popular database schema migration tool
|
|
|
41
41
|
|
|
42
42
|
## Features
|
|
43
43
|
|
|
44
|
-
- Supports MySQL, PostgreSQL, SQLite, and ClickHouse
|
|
45
|
-
- Uses plain SQL for writing schema migrations
|
|
46
|
-
- Migrations are timestamp-versioned, to avoid version number conflicts with multiple developers
|
|
47
|
-
- Migrations are run atomically inside a transaction
|
|
48
|
-
- Supports creating and dropping databases (handy in development/test)
|
|
49
|
-
- Supports saving a `schema.sql` file to easily diff schema changes in git
|
|
50
|
-
- Database connection URL is defined using an environment variable (`DATABASE_URL` by default), or specified on the command line
|
|
51
|
-
- Built-in support for reading environment variables from your `.env` file
|
|
52
|
-
- Easy to distribute, single self-contained binary
|
|
44
|
+
- Supports MySQL, PostgreSQL, SQLite, and ClickHouse
|
|
45
|
+
- Uses plain SQL for writing schema migrations
|
|
46
|
+
- Migrations are timestamp-versioned, to avoid version number conflicts with multiple developers
|
|
47
|
+
- Migrations are run atomically inside a transaction
|
|
48
|
+
- Supports creating and dropping databases (handy in development/test)
|
|
49
|
+
- Supports saving a `schema.sql` file to easily diff schema changes in git
|
|
50
|
+
- Database connection URL is defined using an environment variable (`DATABASE_URL` by default), or specified on the command line
|
|
51
|
+
- Built-in support for reading environment variables from your `.env` file
|
|
52
|
+
- Easy to distribute, single self-contained binary
|
|
53
|
+
- Does not try to upsell you on a SaaS service
|
|
53
54
|
|
|
54
55
|
## Installation
|
|
55
56
|
|
|
@@ -191,6 +192,7 @@ Dropping: myapp_test
|
|
|
191
192
|
$ dbmate -e TEST_DATABASE_URL --no-dump-schema up
|
|
192
193
|
Creating: myapp_test
|
|
193
194
|
Applying: 20151127184807_create_users_table.sql
|
|
195
|
+
Applied: 20151127184807_create_users_table.sql in 123µs
|
|
194
196
|
```
|
|
195
197
|
|
|
196
198
|
Alternatively, you can specify the url directly on the command line:
|
|
@@ -343,6 +345,7 @@ Run `dbmate up` to run any pending migrations.
|
|
|
343
345
|
$ dbmate up
|
|
344
346
|
Creating: myapp_development
|
|
345
347
|
Applying: 20151127184807_create_users_table.sql
|
|
348
|
+
Applied: 20151127184807_create_users_table.sql in 123µs
|
|
346
349
|
Writing: ./db/schema.sql
|
|
347
350
|
```
|
|
348
351
|
|
|
@@ -371,6 +374,7 @@ Run `dbmate rollback` to roll back the most recent migration:
|
|
|
371
374
|
```sh
|
|
372
375
|
$ dbmate rollback
|
|
373
376
|
Rolling back: 20151127184807_create_users_table.sql
|
|
377
|
+
Rolled back: 20151127184807_create_users_table.sql in 123µs
|
|
374
378
|
Writing: ./db/schema.sql
|
|
375
379
|
```
|
|
376
380
|
|
package/dist/resolveBinary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveBinary =
|
|
3
|
+
exports.resolveBinary = resolveBinary;
|
|
4
4
|
const node_process_1 = require("node:process");
|
|
5
5
|
/**
|
|
6
6
|
* Resolve path to dbmate for the current platform
|
|
@@ -23,5 +23,4 @@ function resolveBinary() {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.resolveBinary = resolveBinary;
|
|
27
26
|
//# sourceMappingURL=resolveBinary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":";;AAKA,sCAkBC;AAvBD,+CAA8C;AAE9C;;KAEK;AACL,SAAgB,aAAa;IAC3B,MAAM,GAAG,GAAG,uBAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,MAAM,IAAI,GAAG,WAAW,uBAAQ,IAAI,mBAAI,cAAc,GAAG,EAAE,CAAC;IAE5D,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IACE,GAAG,IAAI,SAAS;YAChB,OAAO,GAAG,KAAK,QAAQ;YACvB,MAAM,IAAI,GAAG;YACb,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAC/B,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,GAAG,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbmate",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.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.
|
|
28
|
-
"@dbmate/linux-x64": "2.
|
|
29
|
-
"@dbmate/linux-arm": "2.
|
|
30
|
-
"@dbmate/linux-arm64": "2.
|
|
31
|
-
"@dbmate/darwin-x64": "2.
|
|
32
|
-
"@dbmate/darwin-arm64": "2.
|
|
33
|
-
"@dbmate/win32-x64": "2.
|
|
27
|
+
"@dbmate/linux-ia32": "2.18.0",
|
|
28
|
+
"@dbmate/linux-x64": "2.18.0",
|
|
29
|
+
"@dbmate/linux-arm": "2.18.0",
|
|
30
|
+
"@dbmate/linux-arm64": "2.18.0",
|
|
31
|
+
"@dbmate/darwin-x64": "2.18.0",
|
|
32
|
+
"@dbmate/darwin-arm64": "2.18.0",
|
|
33
|
+
"@dbmate/win32-x64": "2.18.0"
|
|
34
34
|
}
|
|
35
35
|
}
|