{"id":15471043,"url":"https://github.com/israeleriston/migration-tools","last_synced_at":"2026-05-16T08:40:48.292Z","repository":{"id":57296986,"uuid":"126221695","full_name":"israeleriston/migration-tools","owner":"israeleriston","description":"A tool migration tooling has regenerated database ","archived":false,"fork":false,"pushed_at":"2018-04-11T02:01:35.000Z","size":73,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T04:17:57.116Z","etag":null,"topics":["migration","normalization-database","postgresql","recreate-fk","recreate-pk"],"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/israeleriston.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":"2018-03-21T18:12:20.000Z","updated_at":"2018-04-11T02:03:05.000Z","dependencies_parsed_at":"2022-09-01T06:40:22.569Z","dependency_job_id":null,"html_url":"https://github.com/israeleriston/migration-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/israeleriston/migration-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/israeleriston%2Fmigration-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/israeleriston%2Fmigration-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/israeleriston%2Fmigration-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/israeleriston%2Fmigration-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/israeleriston","download_url":"https://codeload.github.com/israeleriston/migration-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/israeleriston%2Fmigration-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266828954,"owners_count":23991222,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["migration","normalization-database","postgresql","recreate-fk","recreate-pk"],"created_at":"2024-10-02T02:08:27.761Z","updated_at":"2026-05-16T08:40:48.196Z","avatar_url":"https://github.com/israeleriston.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# migration-tools\n\u003e The simple command-line tools (CLI), to recreate the primary keys and foreign key of your database, recommended for use in denormalized databases\n\n## Introduction\n\nmigration-tools is a CLI, to recreating Primary Key's and Foreing Key's the databases desnormalized.\nIt is designed to be simple in both usage.\n\n## Warning\nonly a database postgresql is supported, for a while :/\n\n## How to install\n\n` npm install -g migration-tools `\n\n## How to use\n\nThe tool will look for all the tables that use this id, passed as parameter,\nand will create Primary key (if it does not exist, for the table passed as parameter),\nand will create the foreing keys linking the table and the pk passed as parameter,\nso in the end you will get a base structure with its respective constraints.\n\nrequired only the params\n\n* db - url of connection with database\n* table - using as reference\n* pk - primary key using as based of searching\n\nIt's simple example the usage\n```\n migration --db=postgresql://postgres:password@localhost:5432/migration --table=users --pk=id_users\n```\n## disclaimer\nany error can be reported, as issue and I am accepting PR's :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisraeleriston%2Fmigration-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisraeleriston%2Fmigration-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisraeleriston%2Fmigration-tools/lists"}