Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 758 Bytes

File metadata and controls

16 lines (10 loc) · 758 Bytes

Leerstandsmelder Migration Tools

Commandline tools to migrate the legacy data to the new structure.

Install

From the root of your Leerstandsmelder API Server installation, run npm install leerstandsmelder-migration-tools.

Usage

You can then issue the following commands:

  • ./node_modules/.bin/lsm-migration --action=migrate to transfer the data from the configured MySQL instance to the MongoDB specified in the API server config file._
  • ./node_modules/.bin/lsm-migration --action=fetch to fetch the image files from the old site.
  • ./node_modules/.bin/lsm-migration --action=slugs to generate legacy slugs for old style URLs.
  • ./node_modules/.bin/lsm-migration --action=convert to convert all posts from HTML to Markdown.