emigrate/packages/plugin-storage-fs
2023-11-17 12:50:33 +01:00
..
src fix(plugin-storage-fs): throw a more descriptive error when a lock couldn't be acquired 2023-11-17 12:50:33 +01:00
CHANGELOG.md chore(release): version packages (#12) 2023-11-16 12:59:28 +01:00
package.json chore(release): version packages (#12) 2023-11-16 12:59:28 +01:00
README.md feat(plugin-storage-fs): implement the first version of the File System Storage plugin 2023-11-16 11:07:17 +01:00
tsconfig.json feat(plugin-storage-fs): implement the first version of the File System Storage plugin 2023-11-16 11:07:17 +01:00

@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' })],
};