{"id":23003731,"url":"https://github.com/stechstudio/laravel-locking-migrations","last_synced_at":"2025-04-02T14:25:03.212Z","repository":{"id":57059374,"uuid":"228960087","full_name":"stechstudio/laravel-locking-migrations","owner":"stechstudio","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-19T02:43:48.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-08T05:27:46.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/stechstudio.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":"2019-12-19T02:37:17.000Z","updated_at":"2023-03-20T12:40:04.000Z","dependencies_parsed_at":"2022-08-24T07:40:12.515Z","dependency_job_id":null,"html_url":"https://github.com/stechstudio/laravel-locking-migrations","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Flaravel-locking-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Flaravel-locking-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Flaravel-locking-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Flaravel-locking-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stechstudio","download_url":"https://codeload.github.com/stechstudio/laravel-locking-migrations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246830013,"owners_count":20840737,"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-12-15T07:15:11.812Z","updated_at":"2025-04-02T14:25:03.189Z","avatar_url":"https://github.com/stechstudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locking migrations for Laravel\n\nIf your app deployment process deploys to multiple instances at the same time, and each of those attempts to run migrations, you can run into problems.\n\nThis package adds a `--lock` option to the `php artisan migrate` command, which will ensure only one server runs migrations at a time.\n\n## Installation\n\nVia Composer\n\n``` bash\n$ composer require stechstudio/laravel-locking-migrations\n```\n\n## Usage\n\nIn your composer.json `post-install-cmd` hook (or wherever you are running migrations during deploy) simply add the `--lock` option.\n\n``` php\nphp artisan migrate --lock\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstechstudio%2Flaravel-locking-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstechstudio%2Flaravel-locking-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstechstudio%2Flaravel-locking-migrations/lists"}