{"id":19134040,"url":"https://github.com/umbrellio/rollback-missing-migrations","last_synced_at":"2025-05-06T19:27:12.572Z","repository":{"id":44532250,"uuid":"326207982","full_name":"umbrellio/rollback-missing-migrations","owner":"umbrellio","description":"Package allows to rollback migrations between different releases of the project","archived":false,"fork":false,"pushed_at":"2024-09-15T20:24:53.000Z","size":47,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-15T21:33:21.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/umbrellio.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":"2021-01-02T15:09:40.000Z","updated_at":"2024-09-15T20:24:44.000Z","dependencies_parsed_at":"2024-04-25T11:27:47.965Z","dependency_job_id":"839aace0-1712-4bb4-a003-3285003c421e","html_url":"https://github.com/umbrellio/rollback-missing-migrations","commit_stats":{"total_commits":12,"total_committers":4,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"e5218c46ac4c52f7f052a04a9a8241f0d82ab043"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Frollback-missing-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Frollback-missing-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Frollback-missing-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Frollback-missing-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbrellio","download_url":"https://codeload.github.com/umbrellio/rollback-missing-migrations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223793187,"owners_count":17203770,"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-11-09T06:25:02.442Z","updated_at":"2024-11-09T06:25:02.903Z","avatar_url":"https://github.com/umbrellio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rollback Missing Migrations for Laravel\n\n###### Laravel package for rolling back migrations between different releases\n\n[![Github Status](https://github.com/umbrellio/rollback-missing-migrations/workflows/CI/badge.svg)](https://github.com/umbrellio/rollback-missing-migrations/actions)\n[![Coverage Status](https://coveralls.io/repos/github/umbrellio/rollback-missing-migrations/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/rollback-missing-migrations?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/umbrellio/rollback-missing-migrations/v/stable.png)](https://packagist.org/packages/umbrellio/rollback-missing-migrations)\n[![Total Downloads](https://poser.pugx.org/umbrellio/rollback-missing-migrations/downloads.png)](https://packagist.org/packages/umbrellio/rollback-missing-migrations)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n[![Build Status](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/badges/build.png?b=master)](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/build-status/master)\n[![Code Coverage](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/umbrellio/rollback-missing-migrations/?branch=master)\n\n\n## Installation\n\n__composer__  \n\n`composer require umbrellio/rollback-missing-migrations`\n\n## Usage\n\nIn your **new** release directory:   \n\n`php artisan rollback_missing_migrations:rollback \u003cpath_to_artisan\u003e`\n\n- `\u003cpath_to_artisan\u003e` - absolute path to artisan command in previous release \n\nExample:\n\n`php artisan rollback_missing_migrations:rollback /projects/old_release/your_app/artisan`\n\nIf your migrations files locate in the custom directory you can use optional parameters:\n\n- `--path` - path where your migration files locate in **current** release\n- `--old-path` - path where your migration files locate in **old** release\n- `--realpath` - this flag indicates, how `--path` and `--old-path` formats (absolute or relative) will be recognized\n \nExample with a relative path:\n \n```\nphp artisan rollback_missing_migrations:rollback /projects/old_release_app/artisan \\\n    --old-path=database/old_custom_folder \\ \n    --path=database/custom_migration_folder \n```\n\nExample with an absolute path:\n \n```\nphp artisan rollback_missing_migrations:rollback /projects/old_release/your_app/artisan \\\n    --old-path=/projects/old_release/your_app/database/old_custom_folder \\ \n    --path=/new_release/your_app/database/custom_migration_folder \\ \n    --realpath\n```\n\nIn case if you need rollback new migrations different from origin/master, you can use `rollback_new_migrations:rollback`\n\n## Authors\n\nCreated by Art4es \u0026 Korben Dallas.\n\n\u003ca href=\"https://github.com/umbrellio/\"\u003e\n\u003cimg style=\"float: left;\" src=\"https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg\" alt=\"Supported by Umbrellio\" width=\"439\" height=\"72\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Frollback-missing-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbrellio%2Frollback-missing-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Frollback-missing-migrations/lists"}