mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
fix knex, pg, mysql versions (#9511)
This commit is contained in:
parent
980ba86610
commit
e436a34d46
@ -12,11 +12,11 @@
|
||||
"strapi": "strapi"
|
||||
},
|
||||
"dependencies": {
|
||||
"knex": "^0.21.14",
|
||||
"knex": "0.21.18",
|
||||
"lodash": "4.17.19",
|
||||
"mysql": "^2.17.1",
|
||||
"mysql": "2.18.1",
|
||||
"pg": "8.5.1",
|
||||
"sqlite3": "^5.0.1",
|
||||
"sqlite3": "5.0.0",
|
||||
"strapi": "3.5.1",
|
||||
"strapi-admin": "3.5.1",
|
||||
"strapi-connector-bookshelf": "3.5.1",
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
"strapi-utils": "3.5.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"knex": "^0.20.0"
|
||||
"knex": "0.21.18"
|
||||
},
|
||||
"strapi": {
|
||||
"dependencies": [
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
const sqlClientModule = {
|
||||
sqlite: 'sqlite3',
|
||||
postgres: 'pg',
|
||||
mysql: 'mysql',
|
||||
sqlite: { sqlite3: '5.0.0' },
|
||||
postgres: { pg: '8.5.1' },
|
||||
mysql: { mysql: '2.18.1' },
|
||||
};
|
||||
|
||||
/**
|
||||
@ -12,17 +12,12 @@ const sqlClientModule = {
|
||||
module.exports = ({ scope, client }) => {
|
||||
switch (client) {
|
||||
case 'sqlite':
|
||||
return {
|
||||
'strapi-connector-bookshelf': scope.strapiVersion,
|
||||
knex: '<0.20.0',
|
||||
[sqlClientModule[client]]: '5.0.0',
|
||||
};
|
||||
case 'postgres':
|
||||
case 'mysql':
|
||||
return {
|
||||
'strapi-connector-bookshelf': scope.strapiVersion,
|
||||
knex: '<0.20.0',
|
||||
[sqlClientModule[client]]: 'latest',
|
||||
knex: '0.21.18',
|
||||
...sqlClientModule[client],
|
||||
};
|
||||
case 'mongo':
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user