{"id":22747242,"url":"https://github.com/one-com/node-postgres-migrate","last_synced_at":"2025-03-30T05:40:43.024Z","repository":{"id":66144395,"uuid":"48693252","full_name":"One-com/node-postgres-migrate","owner":"One-com","description":"Postgres migrations from node.js with advisory locks.","archived":false,"fork":false,"pushed_at":"2016-03-08T14:39:11.000Z","size":22,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-05T07:49:09.704Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/One-com.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-28T13:11:55.000Z","updated_at":"2022-02-14T08:47:29.000Z","dependencies_parsed_at":"2023-02-21T16:45:19.655Z","dependency_job_id":null,"html_url":"https://github.com/One-com/node-postgres-migrate","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fnode-postgres-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fnode-postgres-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fnode-postgres-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-com%2Fnode-postgres-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/One-com","download_url":"https://codeload.github.com/One-com/node-postgres-migrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281218,"owners_count":20752207,"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-12-11T03:13:52.243Z","updated_at":"2025-03-30T05:40:43.018Z","avatar_url":"https://github.com/One-com.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgres-migrate\n\n\n[![NPM version](https://badge.fury.io/js/postgres-migrate.svg)](https://www.npmjs.com/package/postgres-migrate)\n[![Build Status](https://travis-ci.org/One-com/node-postgres-migrate.svg)](https://travis-ci.org/One-com/node-postgres-migrate)\n\nMigrations for PostgreSQL databases utilizing advisory locks.\n\n# Usage\n\nKeep your migration files in a separate folder, as individual `.sql` files.\n\n```js\nvar migrate = require('postgres-migrate');\n\nmigrate({\n    conString: 'postgres://dbuser:dbpass@dbhost:32321/dbname',\n    migrationsDir: 'path/to/migrationsDirectory',\n    reporter: console.log.bind(console) // optional parameter\n}).then(function () {\n    // The database is ready to be used!\n}).catch(function (err) {\n    // Something bad happened!\n});\n```\n\nYou can safely start multiple workers at the same time. Only one of them will\ntake the lock, and upgrade the database. The others will wait for the migration\nto be completed, and then resolve the promise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-com%2Fnode-postgres-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-com%2Fnode-postgres-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-com%2Fnode-postgres-migrate/lists"}