File System Storage
The File System Storage is a storage driver that stores the migration history in a .json file on the local file system.
Installation
npm install @emigrate/storage-fspnpm add @emigrate/storage-fsyarn add @emigrate/storage-fsbun add @emigrate/storage-fs{ "dependencies": { "@emigrate/storage-fs": "*" }}Configuration
The File System Storage can be configured easily in your emigrate.config.js file:
import storageFs from '@emigrate/storage-fs';
export default { storage: storageFs({ filename: './migrations.json', }),};Options
filename
type: string
Should be a path either relative to the project root or an absolute path. It doesn’t need to have the .json extension, but its contents will be in JSON format.