Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
umzug-cli
Advanced tools
Readme
A cli factory for umzug, a migration library.
Umzug now has a built-in library. So the use of this module is discouraged.
migrate.js
#!/usr/bin/env node
const KnexUmzug = require('knex-umzug')
require('umzug-cli')({
storage: new KnexUmzug({
connection: knex({})
}),
migrations: {
glob: './migrations/*.js'
}
}).cli(process.argv.slice(2))
migrate.js
$ ./migrate.js
Use: umzug-cli [command]
Where [command] is one of:
up migrates everything up
down migrates 1 migration down
up [file-to-migrate] migrates a specific file up
down [file-to-migrate] migrates a specific file down
pending shows all pending migrations
history shows the migration history
Because most likely each implementation has a custom config structure.
This library directly uses umzug
, which you can configure like documented https://www.npmjs.com/package/umzug#configuration
FAQs
A cli factory for umzug, a migration library
The npm package umzug-cli receives a total of 309 weekly downloads. As such, umzug-cli popularity was classified as not popular.
We found that umzug-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.