knex-migrator 4.2.7 → 4.2.10
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 +2 -3
- package/package.json +4 -4
package/lib/database.js
CHANGED
|
@@ -103,8 +103,7 @@ exports.createMigrationsTable = async function createMigrationsTable(connection)
|
|
|
103
103
|
*/
|
|
104
104
|
exports.createDatabaseIfNotExist = function createDatabaseIfNotExist(dbConfig) {
|
|
105
105
|
const name = dbConfig.connection.database,
|
|
106
|
-
charset = dbConfig.connection.charset || 'utf8mb4'
|
|
107
|
-
collation = dbConfig.connection.collation || 'utf8mb4_general_ci';
|
|
106
|
+
charset = dbConfig.connection.charset || 'utf8mb4';
|
|
108
107
|
|
|
109
108
|
// @NOTE: Skip, because sqlite3 is a file based database.
|
|
110
109
|
if (DatabaseInfo.isSQLiteConfig(dbConfig)) {
|
|
@@ -124,7 +123,7 @@ exports.createDatabaseIfNotExist = function createDatabaseIfNotExist(dbConfig) {
|
|
|
124
123
|
|
|
125
124
|
return exports.ensureConnectionWorks(connection)
|
|
126
125
|
.then(function () {
|
|
127
|
-
return connection.raw('CREATE DATABASE `' + name + '` CHARACTER SET ' + charset + '
|
|
126
|
+
return connection.raw('CREATE DATABASE `' + name + '` CHARACTER SET ' + charset + ';');
|
|
128
127
|
})
|
|
129
128
|
.catch(function (err) {
|
|
130
129
|
// CASE: DB exists
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knex-migrator",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"description": "Database migrations with knex.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"node": "^12.22.1 || ^14.17.0 || ^16.13.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@tryghost/database-info": "0.3.
|
|
51
|
-
"@tryghost/logging": "2.1.
|
|
50
|
+
"@tryghost/database-info": "0.3.5",
|
|
51
|
+
"@tryghost/logging": "2.1.8",
|
|
52
52
|
"bluebird": "3.7.2",
|
|
53
53
|
"commander": "5.1.0",
|
|
54
54
|
"compare-ver": "2.0.2",
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
"sinon": "9.2.4"
|
|
78
78
|
},
|
|
79
79
|
"optionalDependencies": {
|
|
80
|
-
"sqlite3": "5.0.
|
|
80
|
+
"sqlite3": "5.0.8"
|
|
81
81
|
}
|
|
82
82
|
}
|