JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q44302F
  • License MIT

squash hasura migrations

Package Exports

  • hasura-squasher

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hasura-squasher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hasura squasher

CLI tool to squash Hasura (https://hasura.io/) migrations into a single file. Also prettifies SQL,

Install

npm install -g hasura-squasher

Usage

# assuming cwd is a hasura project, squash uncommited migrations to a migration named "bar_table"
hasura-squasher --name bar_table

# squash to first existing migration file
hasura-squasher --name replace

# squash starting with sepcific migration
hasura-squasher --starting 1558366677954

# explicitly specify hasura project dir
hasura-squasher --name bar_table --dir ~/my-hasura-project

# print out resulting migration w/o making any changes
hasura-squasher --name bar_table --dry

# print help
hasura-squasher --help