@flutry/sequelize 0.0.7 → 0.0.9
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/dist/utils/connect.js +5 -1
- package/package.json +1 -1
package/dist/utils/connect.js
CHANGED
|
@@ -22,10 +22,14 @@ class Flutry_Connect {
|
|
|
22
22
|
dialect: `${process.env.DB_TYPE}`,
|
|
23
23
|
logging: false,
|
|
24
24
|
timezone: await await this.functions.getTimeZone(),
|
|
25
|
+
define: {
|
|
26
|
+
charset: 'utf8mb4',
|
|
27
|
+
collate: 'utf8mb4_unicode_ci',
|
|
28
|
+
},
|
|
25
29
|
});
|
|
26
30
|
try {
|
|
27
31
|
await Flutry_Connect.sequelize.authenticate();
|
|
28
|
-
|
|
32
|
+
main_1.Flutry_Sequelize.logger.info('Connection has been established successfully');
|
|
29
33
|
await new models_1.Flutry_Models();
|
|
30
34
|
this.retryCount = 0; // Reset retry count on successful connection
|
|
31
35
|
}
|