Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ah-sequelize-plugin

Package Overview
Dependencies
Maintainers
5
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ah-sequelize-plugin - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

17

initializers/sequelize.js

@@ -7,9 +7,9 @@ var path = require('path');

module.exports = {
loadPriority: 101, // aligned with actionhero's redis initializer
startPriority: 101, // aligned with actionhero's redis initializer
stopPriority: 101, // aligned with actionhero's redis initializer
loadPriority: 121, // aligned with actionhero's redis and logger initializer
startPriority: 121, // aligned with actionhero's redis and logger initializer
stopPriority: 121, // aligned with actionhero's redis and logger initializer
initialize: function(api, next){
api.models = {};
api.config.sequelize.logging = api.logger.info;
var sequelizeInstance = new Sequelize(

@@ -31,3 +31,4 @@ api.config.sequelize.database,

}],
path: api.projectRoot + '/migrations'
path: api.projectRoot + '/migrations',
pattern: /\.js$/
}

@@ -92,3 +93,5 @@ });

autoMigrate: function(next) {
if(api.config.sequelize.autoMigrate === null || api.config.sequelize.autoMigrate) {
if(api.config.sequelize.autoMigrate === null ||
api.config.sequelize.autoMigrate === undefined ||
api.config.sequelize.autoMigrate) {
checkMetaOldSchema(api, umzug).then(function() {

@@ -141,3 +144,3 @@ return umzug.up();

// Check if we need to upgrade from the old sequelize migration format
return api.sequelize.sequelize.query('SELECT * FROM "SequelizeMeta"', {raw: true}).then(function(raw) {
return api.sequelize.sequelize.query('SELECT * FROM SequelizeMeta', {raw: true}).then(function(raw) {
var rows = raw[0];

@@ -144,0 +147,0 @@ if (rows.length && rows[0].hasOwnProperty('id')) {

@@ -5,3 +5,3 @@ {

"description": "I use sequelize in actionhero as an ORM",
"version": "0.8.5",
"version": "0.8.6",
"homepage": "http://actionherojs.com",

@@ -8,0 +8,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc