{"repo":"sequelize/umzug","free":true,"listed":false,"github":"https://github.com/sequelize/umzug","clone":"git clone https://github.com/sequelize/umzug.git","description":"Framework agnostic migration tool for Node.js","language":"TypeScript","stars":2205,"topics":["sequelize","javascript","typescript","migrations"],"license":"MIT","category":"databases-storage","readme_excerpt":"Umzug Umzug is a framework-agnostic migration tool for Node. It provides a clean API for running and rolling back tasks. Highlights Written in TypeScript Built-in typings Auto-completion right in your IDE Documentation right in your IDE Programmatic API for migrations Built-in CLI Database agnostic Supports logging of migration process Supports multiple storages for migration data Usage examples Documentation Note: these are the docs for the latest version of umzug, which has several breaking changes from v2.x. See the upgrading section for a migration guide. For the previous stable version, please refer to the v2.x branch. Minimal Example The following example uses a Sqlite database through sequelize and persists the migration data in the database itself through the sequelize storage. There are several more involved examples covering a few different scenarios in the examples folder. Note that although this uses Sequelize, Umzug isn't coupled to Sequelize, it's just one of the (most commonly-used) supported storages. Note that we renamed the context argument to queryInterface for clarity. The context is whatever we specified when creating the Umzug instance in index.js . You can also write your migrations in typescript by using ts-node in the entrypoint: See these tests for more examples of Umzug usage, including: - passing ignore and cwd parameters to the glob instructions - customising migrations ordering - finding migrations from multiple different directories - using non-","default_branch":null,"files":null,"tree":[],"storefront":"/r/sequelize","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sequelize/umzug/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}