yml-migrator

0.0.1 • Public • Published

YML Migrator

Easy DB migrations by npm package with a config yml file

MySQL / MariaDB MongoDB PostgreSQL SQLite
Supported In Progress In Progress In Progress

Description

Soon.

Getting started

installation

npm install [package name]

Examples

  • Description yml properties
# Optional: Name of migrations group
name: Environment Up
# Optional: folder to looking for migrations files (migrations by default)
directory: migrations
# Required: At least one migration you have to define
migrations:
    # One migration definition
  - migration:
      # type of DB
      type: mysql
      # Filename to execute query or Folder to execute files
      file: migration/00-create-table.sql
      folder: migration/seeds
      # DB port
      port: 3306
      # DB host
      host: localhost
      # DB user
      user: prohost
      # DB password
      password: secret
      # DB name
      database: products
      # Load al files and folders
      recursive: true

Readme

Keywords

none

Package Sidebar

Install

npm i yml-migrator

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

47.9 kB

Total Files

27

Last publish

Collaborators

  • yugarek