{"id":15104915,"url":"https://github.com/shotero/dbmigrator","last_synced_at":"2026-01-20T02:23:03.219Z","repository":{"id":54562737,"uuid":"522491517","full_name":"shotero/dbmigrator","owner":"shotero","description":"Database Migration CLI","archived":false,"fork":false,"pushed_at":"2023-06-01T09:17:59.000Z","size":1185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T02:44:25.940Z","etag":null,"topics":["cli","nodejs","postgres","sql"],"latest_commit_sha":null,"homepage":"","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/shotero.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":"2022-08-08T09:52:02.000Z","updated_at":"2022-08-15T15:31:44.000Z","dependencies_parsed_at":"2024-10-21T17:47:20.055Z","dependency_job_id":null,"html_url":"https://github.com/shotero/dbmigrator","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":0.02631578947368418,"last_synced_commit":"2a7e260cc1bada3290dd09b497b2d73c95d041c4"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotero%2Fdbmigrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotero%2Fdbmigrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotero%2Fdbmigrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shotero%2Fdbmigrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shotero","download_url":"https://codeload.github.com/shotero/dbmigrator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339132,"owners_count":20923009,"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":["cli","nodejs","postgres","sql"],"created_at":"2024-09-25T20:03:59.111Z","updated_at":"2026-01-20T02:23:03.192Z","avatar_url":"https://github.com/shotero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DB Migrator\n\nMigrate PostgreSQL database using vanilla SQL files\n\n## Prerequisite:\n\n- PostgreSQL\n- Database\n\n## Install\n\n`npm install -g @shotero/dbmigrator`\n\n## Usage\n\n`dbmigrator up -t [target]`\n\n`dbmigrator down -t \u003ctarget\u003e`\n\n`dbmigrator make \u003cname\u003e`\n\n## Configuration\n\nSample configuration file:\n\n`.dbmigratorrc.js` OR\n`.dbmigratorrc.cjs`\n\n```\nconst config = {\n  \"creator\": \"testuser\",\n  \"db\": {\n    \"user\": process.env.DB_USER,\n    \"host\": process.env.DB_HOST,\n    \"port\": 5432,\n    \"database\": \"db\",\n    \"password\": process.env.DB_PASSWORD\n  },\n  \"paths\": {\n    \"up\": \"./db/migrations/up\",\n    \"down\": \"./db/migrations/down\"\n  },\n  \"migration\": {\n    \"schema\": \"migration\",\n    \"table\": \"migrations\"\n  }\n}\n\nmodule.exports = config;\n```\n\n## Example\n\n- `dbmigrator make hello`\n- `dbmigrator make world`\n- `dbmigrator up`\n- `dbmigrator down \u003ctimestamp\u003e_world`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshotero%2Fdbmigrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshotero%2Fdbmigrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshotero%2Fdbmigrator/lists"}