Miss any of our Open RFC calls?Watch the recordings here! »

@bappo/migration-cli

0.0.6 • Public • Published

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>

Keywords

none

Install

npm i @bappo/migration-cli

DownloadsWeekly Downloads

12

Version

0.0.6

License

none

Unpacked Size

41.6 kB

Total Files

50

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar