# data-migration

> Interfaces to create new drivers/processors for data-migration

Latest version **2.17.0** (published 2020-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install data-migration
pnpm add data-migration
yarn add data-migration
bun add data-migration
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.17.0 |
| Published | 2020-10-30 |
| First published | 2020-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 43.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ben Force |
| Maintainers | benforce |

## Links

- npm: https://www.npmjs.com/package/data-migration
- Repository: https://github.com/theBenForce/data-migration
- Homepage: https://data-migration.js.org
- Issues: https://github.com/theBenForce/data-migration/issues
- npm.io page: https://npm.io/package/data-migration

## Dependencies (7)

- [rxjs](https://npm.io/package/rxjs.md) ^6.5.5
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.9.0
- [@types/node](https://npm.io/package/@types/node.md) ^13.11.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.9.5
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) ^7.9.0
- [babel-plugin-module-resolver](https://npm.io/package/babel-plugin-module-resolver.md) ^4.0.0

## Recent versions

- 2.17.0 (latest) — 2020-10-30
- 2.16.1 — 2020-10-30
- 2.16.0 — 2020-10-30
- 2.15.1 — 2020-07-07
- 2.15.0 — 2020-07-07
- 2.14.1 — 2020-07-07
- 2.14.0 — 2020-07-07
- 2.13.0 — 2020-07-07
- 2.12.1 — 2020-06-25
- 2.12.0 — 2020-06-24
- 2.11.0 — 2020-06-17
- 2.10.0 — 2020-06-05
- 2.9.5 — 2020-05-27
- 2.9.4 — 2020-05-22
- 2.9.3 — 2020-05-20
- … 34 more at https://npm.io/package/data-migration/versions

## README

# Welcome to data-migration 👋

[![Build Status](https://github.com/theBenForce/data-migration/workflows/Release/badge.svg?branch=master)](https://github.com/theBenForce/data-migration/actions)
[![NPM Package](https://img.shields.io/npm/v/data-migration)](https://www.npmjs.com/package/data-migration)
[![Maintainability](https://api.codeclimate.com/v1/badges/89a0c1976c9b89979635/maintainability)](https://codeclimate.com/github/theBenForce/data-migration/maintainability)
[![Documentation](https://img.shields.io/badge/documentation-view-blue)](https://data-migration.js.org/)
[![Downloads/week](https://img.shields.io/npm/dw/data-migration.svg)](https://npmjs.org/package/data-migration)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

## Tasks

To simplify the migration process, a sql file task has been created. To use it, replace your up/down methods in your migration script like the following:

```typescript
import { MigrationScript } from "data-migration";
import { SqlFile } from "data-migration/lib/tasks/sql";
import * as path from "path";

export default {
  description: "Some migration script",
  ...SqlFile({
    driverName: "SomeSqlDriver",
    upFile: path.resolve(__dirname, "./sql/script-up.sql"),
    downFile: path.resolve(__dirname, "./sql/script-down.sql"),
  }),
} as MigrationScript;
```

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