{"id":28635397,"url":"https://github.com/dmstr/yii2-migrate-command","last_synced_at":"2025-06-12T17:10:11.343Z","repository":{"id":53184057,"uuid":"21444460","full_name":"dmstr/yii2-migrate-command","owner":"dmstr","description":"Console Migration Command for Yii 2.0 with multiple paths/aliases support","archived":false,"fork":false,"pushed_at":"2017-09-06T12:06:12.000Z","size":35,"stargazers_count":31,"open_issues_count":1,"forks_count":15,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-04T03:02:46.855Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmstr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-07-03T00:16:35.000Z","updated_at":"2022-05-26T18:38:04.000Z","dependencies_parsed_at":"2022-08-21T10:50:40.592Z","dependency_job_id":null,"html_url":"https://github.com/dmstr/yii2-migrate-command","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-migrate-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-migrate-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-migrate-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-migrate-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmstr","download_url":"https://codeload.github.com/dmstr/yii2-migrate-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-migrate-command/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257987524,"owners_count":22632428,"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":"2025-06-12T17:10:10.617Z","updated_at":"2025-06-12T17:10:11.328Z","avatar_url":"https://github.com/dmstr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Extended Migration Command\n==========================\n\n**DEPRECATION NOTICE - since Yii 2.0.12 this extension is obsolete, its functionality is now supported by the framework core.** For details see also [issue](https://github.com/dmstr/yii2-migrate-command/issues/23#issuecomment-326950039).\n\n---\n\n[![Latest Stable Version](https://poser.pugx.org/dmstr/yii2-migrate-command/v/stable.svg)](https://packagist.org/packages/dmstr/yii2-migrate-command) \n[![Total Downloads](https://poser.pugx.org/dmstr/yii2-migrate-command/downloads.svg)](https://packagist.org/packages/dmstr/yii2-migrate-command)\n[![License](https://poser.pugx.org/dmstr/yii2-migrate-command/license.svg)](https://packagist.org/packages/dmstr/yii2-migrate-command)\n\nConsole Migration Command with multiple paths/aliases support\n\nThis extension was created from this [Pull Request](https://github.com/yiisoft/yii2/pull/3273) on GitHub, which became unmergeable.\nUntil this feature will be reimplemented into the core, you can use this extension if you need to handle multiple migration paths.\n\n\u003e Note! If using `dmstr/yii2-migrate-command` in an existing project, you may have to remove your *migration* table, due to a schema change.\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\n```\ncomposer require dmstr/yii2-migrate-command\n```\n\nUsage\n-----\n\nConfigure the command in your `main` application configuration:\n\n```\n'controllerMap'       =\u003e [\n    'migrate' =\u003e [\n        'class' =\u003e 'dmstr\\console\\controllers\\MigrateController'\n    ],\n],\n```\n\nOnce the extension is installed and configured, simply use it on your command line\n\n```\n./yii migrate\n```\n\n\n### Adding migrations via application configuration\n\nAdd additional migration paths via application `params`:\n\n```\n\"yii.migrations\"=\u003e [\n    \"@dektrium/user/migrations\",\n],\n```\n\n### Adding migrations via extension `bootstrap()`\n\nYou can also add migrations in your module bootstrap process:\n\n```\npublic function bootstrap($app)\n{\n    $app-\u003eparams['yii.migrations'][] = '@vendorname/packagename/migrations';\n}\n```    \n\n### Adding migrations via command parameter\n\nIf you want to specify an additional path directly with the command, use\n\n```\n./yii migrate --migrationLookup=@somewhere/migrations/data1,@somewhere/migrations/data2\n```\n\n\u003e Note! Please make sure to **not use spaces** in the comma separated list.\n\n---\n\nBuilt by [dmstr](http://diemeisterei.de), Stuttgart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-migrate-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmstr%2Fyii2-migrate-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-migrate-command/lists"}