mardi 22 septembre 2020

How to run the migrations in one project from another project in Node.js

My requirement is, I have a sails.js project which has migrations for all the other projects and I can run the migrations with a npm script as well, then I have another serverless project which is also developed using node.js. The serverless project tables are also inside the same migration folder in the sails project.

I want to run these migration in serverless project both when running the tests in local as well as in the CI/ CD pipeline, what are the possible ways to run the migrations which is in another project when running the tests of another project.

Aucun commentaire:

Enregistrer un commentaire