{"id":16185479,"url":"https://github.com/patrickhulce/umzug-mongo","last_synced_at":"2025-03-19T02:32:05.631Z","repository":{"id":57385737,"uuid":"67083203","full_name":"patrickhulce/umzug-mongo","owner":"patrickhulce","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-27T00:01:20.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T00:51:26.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickhulce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-01T00:15:44.000Z","updated_at":"2021-08-14T00:27:04.000Z","dependencies_parsed_at":"2022-08-29T13:42:09.987Z","dependency_job_id":null,"html_url":"https://github.com/patrickhulce/umzug-mongo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fumzug-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fumzug-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fumzug-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickhulce%2Fumzug-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickhulce","download_url":"https://codeload.github.com/patrickhulce/umzug-mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221465104,"owners_count":16826700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T07:14:24.699Z","updated_at":"2024-10-27T19:10:26.221Z","avatar_url":"https://github.com/patrickhulce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### ATTENTION\n\nYou probably don't need this library, umzug has been updated to natively support [mongo migrations](https://github.com/sequelize/umzug#mongodbstorage) as of v2.1.\n\n# umzug-mongo\n[![NPM Package](https://badge.fury.io/js/umzug-mongo.svg)](https://www.npmjs.com/package/umzug-mongo)\n[![Build Status](https://travis-ci.org/patrickhulce/umzug-mongo.svg?branch=master)](https://travis-ci.org/patrickhulce/umzug-mongo)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Dependencies](https://david-dm.org/patrickhulce/umzug-mongo.svg)](https://david-dm.org/patrickhulce/umzug-mongo)\n\nUmzug adapter for mongo migrations.\n\n\n## Usage\n\nSimply pass in your promise-compliant mongodb-core database or collection object.\n\n```js\nvar Umzug = require('umzug');\nvar MongoClient = require('mongodb').MongoClient;\n\nMongoClient.connect('mongodb://localhost:27017/mydatabase').then(function (db) {\n  var umzug = new Umzug({\n    storage: 'umzug-mongo',\n    storageOptions: {\n      connection: db,\n      collectionName: 'mymigrations', // defaults to 'migrations'\n    },\n  });\n\n  return umzug.up();\n});\n```\n\nor\n\n```js\nvar Umzug = require('umzug');\nvar MongoClient = require('mongodb').MongoClient;\n\nMongoClient.connect('mongodb://localhost:27017/mydatabase').then(function (db) {\n  var migrations = db.collection('migrations');\n  var umzug = new Umzug({\n    storage: 'umzug-mongo',\n    storageOptions: {\n      collection: migrations,\n    },\n    migrations: {\n      params: [db]\n    },\n  });\n\n  return umzug.up();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickhulce%2Fumzug-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickhulce%2Fumzug-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickhulce%2Fumzug-mongo/lists"}