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

sequelize-migrate

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-migrate - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

index.js
const Umzug = require('umzug');
const fs = require('fs');

@@ -8,2 +9,7 @@ function logMigrationName(name) {

function migrate(persistence, config, action, migrationPath, migration, callback) {
if(!fs.existsSync(migrationPath)){
console.log('No migrations to execute');
return callback();
}
const sequelize = persistence.createConnection();

@@ -10,0 +16,0 @@ const umzug = new Umzug({

10

migrate.js

@@ -23,7 +23,7 @@ const mrPotatoHead = require('mr-potato-head');

kgo('lock', locking.lock)('migrate', ['!lock'], abbott(umzug[action](migrateTo)))(
'unlock',
['!migrate'],
locking.close,
)(['*', '!unlock'], error => {
kgo
('lock', locking.lock)
('migrate', ['!lock'], abbott(umzug[action](migrateTo)))
('unlock', ['!migrate'], locking.close, )
(['*', '!unlock'], error => {
if (error) {

@@ -30,0 +30,0 @@ console.log(`Error running migrations, exiting ${error}`);

{
"name": "sequelize-migrate",
"version": "1.2.0",
"version": "1.2.1",
"description": "Sequelize Migration Tool",

@@ -25,6 +25,7 @@ "main": "index.js",

"command-line-usage": "^5.0.5",
"fs-extra": "^6.0.1",
"fs-extra": "^7.0.1",
"kgo": "^4.0.3",
"mr-potato-head": "^3.0.0",
"umzug": "^2.1.0"
"mr-potato-head": "^4.0.0",
"mysql2": "^1.6.4",
"umzug": "^2.2.0"
},

@@ -31,0 +32,0 @@ "keywords": [

module.exports = {
up: function (queryInterface, Sequelize) {
up: function(queryInterface, Sequelize) {
// Up things
},
down: function (queryInterface, Sequelize) {
down: function(queryInterface, Sequelize) {
// Undo the up things
},
};
};
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