knex-migrator 4.2.0 → 4.2.1

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/lib/database.js +1 -0
  2. package/package.json +2 -2
package/lib/database.js CHANGED
@@ -27,6 +27,7 @@ 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;
30
31
  }
31
32
 
32
33
  return knex(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knex-migrator",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
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} master --follow-tags; fi"
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",