db.history = {};
-var sequelize_history = new Sequelize(config.db_history.database, config.db_history.username, config.db_history.password, {
+var sequelize_readOnly = new Sequelize(config.db_history.database, config.db_history.username, config.db_history.password, {
host: config.db_history.host,
dialect: 'mysql',
timezone: config.timezone || moment().format("Z"),
(file.indexOf(".") !== 0) && (file.indexOf('.spec.') === -1) && (file !== "index.js");
})
.forEach(function(file) {
- var model = sequelize_history["import"](path.join(__dirname, 'history', file));
+ var model = sequelize["import"](path.join(__dirname, 'history', file));
db.history[model.name] = model;
});
});
db.sequelize = sequelize;
-db.sequelize_history = sequelize_history;
+db.sequelize_readOnly = sequelize_readOnly;
db.Sequelize = Sequelize;
module.exports = db;