1.0.2 • Published 4 years ago

@pforth/migrator v1.0.2

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

This module adds 2 prototypes to the javascript Date object...

##Veradaccio This project should be published in a locally running npm repo. You can do the following:

npm install -g verdaccio

nohup verdaccio --listen 4873

npm set registry http://localhost:4873/

You can also refer to here

Usage

const migrator=require("migrator");
db.createPoolsFromFile("config.json");

await migrator.migrate(); // Default database only
await migrator.migrate(dbName1);
await migrator.migrateAll(); // Migrate for all loaded pools...

You should do this from a separate migrate.js file that you can run from the command line like node migrate.js

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago