0.0.1 • Published 2 years ago

yml-migrator v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

YML Migrator

Easy DB migrations by npm package with a config yml file

MySQL / MariaDBMongoDBPostgreSQLSQLite
SupportedIn ProgressIn ProgressIn 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