@emigrate/plugin-storage-fs
v0.1.1
Published
A storage plugin for Emigrate for storing the migration history in a file
Downloads
8
Maintainers
Readme
@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' })],
};