momy
momy copied to clipboard
migrate into two database
{
"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"]