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

tm-apps-db

Package Overview
Dependencies
Maintainers
6
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-apps-db - npm Package Compare versions

Comparing version 3.2.19-pubs2 to 3.2.19-pubs3

models/test.js

1

migrations/201705111154_add_index_to_article_author_author_id_collumn.js

@@ -8,2 +8,3 @@ module.exports = {

} else {
console.log(`NOT SWALLOWED ERROR: ${e}`);
throw e;

@@ -10,0 +11,0 @@ }

@@ -32,4 +32,11 @@ "use strict";

underscored: true,
hooks: {
// executed "before" `Model.sync(...)`
beforeSync: function (options) {
// this = Model
console.log('beforeSync of pub model');
}
}
});
return pub;
};

2

package.json
{
"name": "tm-apps-db",
"version": "3.2.19-pubs2",
"version": "3.2.19-pubs3",
"description": "Apps consumer database initialiser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,5 @@ const config = require('config');

const options = {
force: program.force
force: program.force,
logging: console.log,
hooks: true
};

@@ -18,4 +20,8 @@ console.log('Synchronising database %s', program.force ? 'with force' : '');

console.log('Completed successfully.');
//Must close the connection manually
db.sequelize.close();
})
.catch(err => {
console.log(`Error while db sync: ${err}`);
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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