momy icon indicating copy to clipboard operation
momy copied to clipboard

migrate into two database

Open ssuriyayuvan opened this issue 5 years ago • 0 comments

{
    "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"]

ssuriyayuvan avatar Feb 06 '20 17:02 ssuriyayuvan