knex-migrator 4.2.0 → 4.2.3
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/bin/knex-migrator-health +1 -1
- package/bin/knex-migrator-init +1 -1
- package/bin/knex-migrator-migrate +1 -1
- package/bin/knex-migrator-reset +1 -1
- package/bin/knex-migrator-rollback +1 -1
- package/lib/database.js +3 -0
- package/lib/index.js +1 -1
- package/package.json +5 -4
- package/logging.js +0 -8
package/bin/knex-migrator-health
CHANGED
package/bin/knex-migrator-init
CHANGED
package/bin/knex-migrator-reset
CHANGED
package/lib/database.js
CHANGED
|
@@ -27,6 +27,9 @@ exports.connect = function connect(options) {
|
|
|
27
27
|
if (client === 'mysql2') {
|
|
28
28
|
options.connection.timezone = options.connection.timezone || 'Z';
|
|
29
29
|
options.connection.charset = options.connection.charset || 'utf8mb4';
|
|
30
|
+
options.connection.decimalNumbers = true;
|
|
31
|
+
|
|
32
|
+
delete options.connection.filename;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
return knex(options);
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const debug = require('debug')('knex-migrator:index');
|
|
|
5
5
|
const database = require('./database');
|
|
6
6
|
const utils = require('./utils');
|
|
7
7
|
const errors = require('./errors');
|
|
8
|
-
const logging = require('
|
|
8
|
+
const logging = require('@tryghost/logging');
|
|
9
9
|
const migrations = require('../migrations');
|
|
10
10
|
const locking = require('./locking');
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knex-migrator",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "Database migrations with knex.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"posttest": "yarn lint",
|
|
34
34
|
"coverage": "nyc --reporter=lcov _mocha --require test/utils.js -- test/*_spec.js",
|
|
35
35
|
"preship": "yarn test",
|
|
36
|
-
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream}
|
|
36
|
+
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream} main --follow-tags; fi"
|
|
37
37
|
},
|
|
38
38
|
"bin": {
|
|
39
39
|
"knex-migrator": "./bin/knex-migrator",
|
|
@@ -47,12 +47,13 @@
|
|
|
47
47
|
"node": "^12.22.1 || ^14.17.0 || ^16.13.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
+
"@tryghost/logging": "2.0.4",
|
|
50
51
|
"bluebird": "3.7.2",
|
|
51
52
|
"commander": "5.1.0",
|
|
52
53
|
"compare-ver": "2.0.2",
|
|
53
|
-
"debug": "4.3.
|
|
54
|
+
"debug": "4.3.4",
|
|
54
55
|
"ghost-ignition": "4.6.3",
|
|
55
|
-
"knex": "0.21.
|
|
56
|
+
"knex": "0.21.21",
|
|
56
57
|
"lodash": "4.17.21",
|
|
57
58
|
"moment": "2.24.0",
|
|
58
59
|
"nconf": "0.11.3",
|