0.1.1 • Published 6 months ago

@emigrate/plugin-storage-fs v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@emigrate/plugin-storage-fs

A file system storage plugin for Emigrate, suitable for simple migration setups. To support containerized environments, it is recommended to use a database storage plugin instead.

Installation

Install the plugin in your project, alongside the Emigrate CLI:

npm install --save-dev @emigrate/cli @emigrate/plugin-storage-fs

Usage

Configure the plugin in your emigrate.config.js file:

import storageFs from '@emigrate/plugin-storage-fs';

export default {
  directory: 'migrations',
  plugins: [storageFs({ filename: '.migrated.json' })],
};