Skip to content

migrate into two database #27

@ssuriyayuvan

Description

@ssuriyayuvan
{
    "src": "mongodb://localhost:27017/logs",
    "dist": "mysql://root:password@localhost:3306/admin",
    "collections": {
      "audit-logs": {
        "_id": "string",
        "message": "string",
        "createdAt": "string",
        "updatedAt": "DATE"
      },
      "error-logs": {
        "_id": "string",
        "createdAt": "DATETIME",
        "message": "string",
        "updatedAt": "DATETIME"
      }
    }
  }

this is my momy.json file.

  • Here I want to migrate more than one database. So I want to pass the dist link in array to achieve this one.

Like this :

    "dist":["mysql://root:password@localhost:3306/admin","mysql://root:password@localhost:3306/newdb"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions