{"id":22244784,"url":"https://github.com/vorban/migration-disorder-bug-report","last_synced_at":"2025-09-04T12:48:34.575Z","repository":{"id":247663213,"uuid":"826488898","full_name":"vorban/migration-disorder-bug-report","owner":"vorban","description":"Showcasing migration publishing disorder in Laravel.","archived":false,"fork":false,"pushed_at":"2024-07-09T20:28:45.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T10:14:43.903Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vorban.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-09T20:00:56.000Z","updated_at":"2024-07-09T20:28:48.000Z","dependencies_parsed_at":"2024-07-10T00:58:09.272Z","dependency_job_id":"1644ff4c-d696-41f6-9138-a9a7f6633c0a","html_url":"https://github.com/vorban/migration-disorder-bug-report","commit_stats":null,"previous_names":["vorban/migration-disorder-bug-report"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorban%2Fmigration-disorder-bug-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorban%2Fmigration-disorder-bug-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorban%2Fmigration-disorder-bug-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorban%2Fmigration-disorder-bug-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorban","download_url":"https://codeload.github.com/vorban/migration-disorder-bug-report/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245449681,"owners_count":20617190,"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-03T04:38:27.670Z","updated_at":"2025-03-25T11:11:59.997Z","avatar_url":"https://github.com/vorban.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migration disorder bug report\n\nWhen publishing migrations, they are created\nin a random order that does not reflect the\nintented ordering.\n\n## Quick tour\n\nThe laravel app is brand new and generated with `laravel new`.\n\nThe only change is the addition of the path repository in `composer.json`\nfor the package that publishes migrations, along with the composer requirement for that package.\n\nThe `./disorder` directory is a package that publishes 3 classic migrations.\nThey are naturally ordered via valid timestamps. Those are expected to be updated\nby laravel during publishing.\n\nMigrations `create_api_keys_table` and `seed_default_customer` both depend on `create_customers_table`,\nso running them out of order will fail.\n\n## Installing and trying out\n\n```sh\ngit clone git@github.com:vorban/migration-disorder-bug-report.git\ncd migration-disorder-bug-report\ncomposer install\nartisan vendor:publish --tag=disorder\n```\n\nThe outcome is seemingly random. Here is a screenshot of one attempt that I got:\n![./publish-outcome-screenshot.png](./publish-outcome-screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorban%2Fmigration-disorder-bug-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorban%2Fmigration-disorder-bug-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorban%2Fmigration-disorder-bug-report/lists"}