{"id":16861442,"url":"https://github.com/rumpl/migrate","last_synced_at":"2026-04-09T23:14:08.385Z","repository":{"id":66257899,"uuid":"8566636","full_name":"rumpl/migrate","owner":"rumpl","description":"Node database migration tool","archived":false,"fork":false,"pushed_at":"2013-03-19T16:19:28.000Z","size":320,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T23:14:42.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rumpl.github.com/migrate/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumpl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-04T22:33:54.000Z","updated_at":"2014-03-26T07:38:49.000Z","dependencies_parsed_at":"2023-02-20T01:00:57.490Z","dependency_job_id":null,"html_url":"https://github.com/rumpl/migrate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fmigrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fmigrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fmigrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumpl%2Fmigrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumpl","download_url":"https://codeload.github.com/rumpl/migrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244305870,"owners_count":20431736,"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-13T14:32:01.395Z","updated_at":"2026-04-09T23:14:08.350Z","avatar_url":"https://github.com/rumpl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node migrate\n\nNode migrate is a database migration tool inspired by Ruby on Rails migrations.\n\nIt will soon work for mysql, pgsql and sqlite.\n\n[![build status](https://secure.travis-ci.org/rumpl/migrate.png)](http://travis-ci.org/rumpl/migrate)\n\n# Intallation\n\nNot yet released but it will be as easy as `npm`:\n\n```bash\nnpm install migrate -g\n```\n\n# Usage\n\n**Not working yet**\n\nTo create a new migration file simply run:\n\n```\nmigrate create \u003cname of the migration\u003e\n```\n\nTo execute the migrations:\n\n```\nmigrate update\n```\n\nOr just execute `migrate` without any parameters to see the full list of commands and options.\n\n# Creating migrations\n\nWhen you create a new migration file, it will look something like this :\n\n```javascript\nchange(function (shema) {\n    // Your code here\n});\n```\n\nWith `schema` you can do any of the following transformations:\n * `schema.createTable`\n * `schema.dropTable`\n * `schema.addColumn`\n * `schema.addIndex`\n * `schema.removeColumn`\n * `schema.removeIndex`\n\nHere is what a migration migth look like :\n\n```javascript\nmodule.exports.change = function (schema) {\n  schema.addTable('test', function (table) {\n    table.addColumn('id', 'int', {primary: true});\n    table.addColumn('name', 'string');\n    table.addColumn('description', 'text');\n    table.addColumn('num_added', 'int', {'null': false, 'default': 0});\n    table.addColumn('num_modified', 'integer', {'references': {'table': 'toto', 'column': 'toto'}});\n\n    table.addColumn('creation_date', 'date');\n    table.addColumn('modification_date', 'date');\n\n    table.addIndex('idx_added', 'description', {'type': 'unique'});\n  });\n};\n```\n\nThis migration will create a new table called `test` with all the listed columns.\n\n# License\n\n[MIT](http://mit-license.org/rumpl)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumpl%2Fmigrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumpl%2Fmigrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumpl%2Fmigrate/lists"}