mysql-migration 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +5 -1
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- const program = require('commander');
2
+ const { Command } = require('commander');
3
+ const program = new Command();
3
4
  //---------------------------------------
4
5
  program
5
6
  .command('help')
@@ -38,6 +39,6 @@ program
38
39
  program
39
40
  .command('batch <dbName>')
40
41
  .description('Get the batched migrations')
41
- .action(() => require('./src/commands/batch'));
42
+ .action((dbName) => require('./src/commands/batch')(dbName));
42
43
  //---------------------------------------
43
44
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql-migration",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Migration for mysql database",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -9,6 +9,10 @@
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/SherKan-n/MySQL-Migration-Database.git"
15
+ },
12
16
  "keywords": [
13
17
  "mysql migration",
14
18
  "migration",