# sequelize-migrate

> Sequelize Migration Tool

Latest version **1.2.2** (published 2020-04-08) · 0 weekly downloads

## Install

```sh
npm install sequelize-migrate
pnpm add sequelize-migrate
yarn add sequelize-migrate
bun add sequelize-migrate
```

Provides the command `sequelize-migrate`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2020-04-08 |
| First published | 2015-12-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | liam_oehlman, mauricebutler |
| Keywords | sequelize, migration, migrate, database, mysql |

## Links

- npm: https://www.npmjs.com/package/sequelize-migrate
- Repository: https://github.com/liamoehlman/sequelize-migrate
- Issues: https://github.com/liamoehlman/sequelize-migrate/issues
- npm.io page: https://npm.io/package/sequelize-migrate

## Dependencies (8)

- [kgo](https://npm.io/package/kgo.md) ^4.0.3
- [umzug](https://npm.io/package/umzug.md) ^2.2.0
- [abbott](https://npm.io/package/abbott.md) ^1.1.3
- [mysql2](https://npm.io/package/mysql2.md) ^1.6.4
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [mr-potato-head](https://npm.io/package/mr-potato-head.md) ^4.0.1
- [command-line-args](https://npm.io/package/command-line-args.md) ^5.0.2
- [command-line-usage](https://npm.io/package/command-line-usage.md) ^5.0.5

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 1.2.2 (latest) — 2020-04-08
- 1.2.1 — 2018-12-13
- 1.2.0 — 2018-05-18
- 1.1.0 — 2017-02-07
- 1.0.5 — 2016-06-07
- 1.0.4 — 2016-02-04
- 1.0.3 — 2016-02-04
- 1.0.2 — 2015-12-02

## README

# sequelize-migrate
Standardised sequelize migration wrapper, takes a persistence.initialise function and a config object

## Usage
- Command line

``` bash
cd my-cool-project/migrations && sequelize-migrate -u
cd my-cool-project/migrations && sequelize-migrate -c my-cool-new-migration
```

- Programatically

``` javascript
const migrate = require('sequelize-migrate');

migrate(
    persistence, // persistence object with .initialise and .sequelise
    config, // database config
    action, // either 'up' or 'down'
    migrationPath, // full path to the existing migrations
    migration, // optional - migration to run
    callback
);
```

---
_Source: https://npm.io/package/sequelize-migrate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
