@bappo/migration-cli
The command line tool for bappo db migration
Last updated 2 years ago by williamfyc .
Original npm · Tarball · package.json
$ cnpm install @bappo/migration-cli 
SYNC missed versions from official npm registry.

Bappo migration

Installation

npm install -g @bappo/migration-cli

Supported dbs

Currently only works with mongo. Use sequelize-cli instead for postgres.

Usage

  1. Make sure you are in the migrations folder

  2. Generate a migration

    bappo-migrate generate <migration_name>
    

    This creates a migration script folder with name {timestamp}_{migration_name} in the migrations folder.

  3. Write upgrade script up.js in the newly created migration script folder

  4. Complete test file up.spec.js in the newly created migration script folder

  5. Make sure tests pass

    bappo-migrate test-upgrade <migration_name_with_timestamp>
    
  6. Run upgrade

    bappo-migrate upgrade <migration_name_with_timestamp>
    

Current Tags

  • 0.0.6                                ...           latest (2 years ago)

5 Versions

  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (8)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |