Migrate from mongo to sqlite

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-05 17:52:57 +04:00
parent 1385fe00b5
commit a9f2be20d5
3 changed files with 102 additions and 58 deletions
+4 -9
View File
@@ -2,18 +2,13 @@ module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'mongoose',
connector: 'bookshelf',
settings: {
srv: env.bool('DATABASE_SRV', false),
host: env('MONGO_HOST', 'localhost'),
port: env('MONGO_PORT', 27017),
database: env('MONGO_DB', 'strapi'),
username: env('MONGO_USER', ''),
password: env('MONGO_PASSWORD', '')
client: 'sqlite',
filename: '.tmp/data.db',
},
options: {
authenticationDatabase: env('AUTHENTICATION_DATABASE', null),
ssl: env.bool('DATABASE_SSL', false),
useNullAsDefault: true,
},
},
},