{"id":15611481,"url":"https://github.com/wavychat/neo4j_migrations","last_synced_at":"2026-04-09T22:42:41.231Z","repository":{"id":47794576,"uuid":"352126653","full_name":"wavychat/neo4j_migrations","owner":"wavychat","description":"Migrate your Neo4j constraints","archived":false,"fork":false,"pushed_at":"2021-08-13T00:52:30.000Z","size":138,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T14:45:22.203Z","etag":null,"topics":["cli","cypher-query-language","database","migration-tool","neo4j","neo4j-constraints","neo4j-migrations","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/wavychat.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":"2021-03-27T16:51:40.000Z","updated_at":"2021-11-15T11:49:59.000Z","dependencies_parsed_at":"2022-09-08T06:52:59.378Z","dependency_job_id":null,"html_url":"https://github.com/wavychat/neo4j_migrations","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/wavychat%2Fneo4j_migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavychat%2Fneo4j_migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavychat%2Fneo4j_migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavychat%2Fneo4j_migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavychat","download_url":"https://codeload.github.com/wavychat/neo4j_migrations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200296,"owners_count":20739563,"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","cypher-query-language","database","migration-tool","neo4j","neo4j-constraints","neo4j-migrations","nodejs"],"created_at":"2024-10-03T06:04:49.958Z","updated_at":"2026-04-09T22:42:36.211Z","avatar_url":"https://github.com/wavychat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neo4j_migrations\nMigrate your Neo4j constraints\n\n## Configuring\n\nTo setup a custom config please create a `neo4j-mig.config.json` file.\n\nIn this file you need to specify:\n- the db name (default is `neo4j`) \n- the url to the database\n- the db username\n- the db password\n- where to save your migrations (default is `./migrations`)\n- node label of already runned migration in `neo4j`\n\n```ts\nexport interface IJSONConfig {\n  database?: string;\n  url: string;\n  username: string;\n  password: string;\n  folder?: string;\n  node_label?: string;\n}\n``` \n\n## Creating a migration\n\n\u003e npx neo4j_migrations create --name User\nOr:\n\u003e npx neo4j_migrations create -n User\n\nThis will create a `.cql` file under the folder you specified in `neo4j-mig.config.json`.\n\nThis file is seperated in 2 parts: \n- Migrate\n- Undo\n\nJust write the `cypher` code you want to execute on migration under the `# -- up --`\nAnd the code you will execute when reverting the migration under the `# -- undo --`\n\n***Don't remove those comments***\n\n## Running your migrations\n\n\u003e npx neo4j-mig run\n\nThis runs migrations that where not already executed and saves them in neo4j with the label you specified in `neo4j-mig.config.json`.\n\n## Undo migrations\n\n- Undo last:\n    \u003e npx neo4j-mig undo-last\n- Undo all:\n    \u003e npx neo4j-mig undo-all\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavychat%2Fneo4j_migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavychat%2Fneo4j_migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavychat%2Fneo4j_migrations/lists"}