0.4.6 • Published 4 months ago

@emigrate/storage-fs v0.4.6

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

@emigrate/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 storage plugin in your project, alongside the Emigrate CLI:

npm install @emigrate/cli @emigrate/storage-fs
# or
pnpm add @emigrate/cli @emigrate/storage-fs
# or
yarn add @emigrate/cli @emigrate/storage-fs
# or
bun add @emigrate/cli @emigrate/storage-fs

Usage

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

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

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

Or use the CLI option --storage (or -s):

emigrate up --storage fs  # the @emigrate/storage- prefix is optional
0.4.5

4 months ago

0.4.6

4 months ago

0.4.4

4 months ago

0.4.3

5 months ago

0.4.1

5 months ago

0.4.0

5 months ago

0.4.2

5 months ago

0.3.3

5 months ago

0.3.2

5 months ago

0.3.1

5 months ago

0.3.0

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago