knex-migrator 4.2.4 → 4.2.7

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/lib/database.js CHANGED
@@ -22,12 +22,6 @@ exports.connect = function connect(options) {
22
22
  const client = options.client;
23
23
 
24
24
  if (client === 'sqlite3') {
25
- // TODO: remove this hack
26
- // I need to monkey-patch the sqlite3 dialect to use `sqlite3` to make
27
- // the jumps smaller as I'm updating `knex`
28
- const Dialect = require(`knex/lib/dialects/sqlite3/index.js`);
29
- Dialect.prototype._driver = () => require('sqlite3');
30
-
31
25
  options.useNullAsDefault = options.useNullAsDefault || false;
32
26
  }
33
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knex-migrator",
3
- "version": "4.2.4",
3
+ "version": "4.2.7",
4
4
  "description": "Database migrations with knex.",
5
5
  "keywords": [
6
6
  "ghost",
@@ -47,18 +47,18 @@
47
47
  "node": "^12.22.1 || ^14.17.0 || ^16.13.0"
48
48
  },
49
49
  "dependencies": {
50
- "@tryghost/database-info": "0.3.0",
51
- "@tryghost/logging": "2.1.1",
50
+ "@tryghost/database-info": "0.3.3",
51
+ "@tryghost/logging": "2.1.7",
52
52
  "bluebird": "3.7.2",
53
53
  "commander": "5.1.0",
54
54
  "compare-ver": "2.0.2",
55
55
  "debug": "4.3.4",
56
56
  "ghost-ignition": "4.6.3",
57
- "knex": "1.0.4",
57
+ "knex": "2.0.0",
58
58
  "lodash": "4.17.21",
59
59
  "moment": "2.24.0",
60
60
  "mysql2": "2.3.3",
61
- "nconf": "0.11.3",
61
+ "nconf": "0.12.0",
62
62
  "resolve": "1.22.0"
63
63
  },
64
64
  "files": [
@@ -77,6 +77,6 @@
77
77
  "sinon": "9.2.4"
78
78
  },
79
79
  "optionalDependencies": {
80
- "sqlite3": "5.0.2"
80
+ "sqlite3": "5.0.5"
81
81
  }
82
82
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "database": {
3
+ "client": "mysql2",
4
+ "connection": {
5
+ "host": "127.0.0.1",
6
+ "user": "root",
7
+ "password": "",
8
+ "database": "km_testing",
9
+ "debug": false
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "database": {
3
+ "client": "sqlite3",
4
+ "connection": {
5
+ "filename": "test.db"
6
+ },
7
+ "useNullAsDefault": true
8
+ }
9
+ }