@pforth/migrator

1.0.2 • Public • Published

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @pforth/migrator

    Weekly Downloads

    0

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.69 kB

    Total Files

    3

    Last publish

    Collaborators

    • pforth