exodus-framework 2.0.992 → 2.0.993
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/services/database.js +4 -2
- package/package.json +1 -1
package/lib/services/database.js
CHANGED
@@ -71,7 +71,8 @@ class DatabaseService extends _app.Service {
|
|
71
71
|
const sequelize = new _sequelize.Sequelize({
|
72
72
|
host,
|
73
73
|
port,
|
74
|
-
dialect,
|
74
|
+
dialect: dialect == 'mariadb' ? 'mysql' : dialect,
|
75
|
+
// mariadb é um alias para mysql
|
75
76
|
database,
|
76
77
|
username,
|
77
78
|
password,
|
@@ -102,7 +103,8 @@ class DatabaseService extends _app.Service {
|
|
102
103
|
port: data.port,
|
103
104
|
username: data.username,
|
104
105
|
password: data.password,
|
105
|
-
dialect: data.dialect,
|
106
|
+
dialect: data.dialect == 'mariadb' ? 'mysql' : data.dialect,
|
107
|
+
// mariadb é um alias para mysql,
|
106
108
|
timezone: '-03:00',
|
107
109
|
pool: _app.Core.settings.getDatabase().service.pool,
|
108
110
|
logging: _app.Core.settings.getDatabase().service.log
|