{"id":18794368,"url":"https://github.com/yiisolutions/yii2-migrations-advanced","last_synced_at":"2026-06-20T18:32:01.595Z","repository":{"id":57087231,"uuid":"76439849","full_name":"yiisolutions/yii2-migrations-advanced","owner":"yiisolutions","description":"Advanced migrations for Yii2","archived":false,"fork":false,"pushed_at":"2017-12-11T17:59:57.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T06:35:00.687Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisolutions.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":"2016-12-14T08:28:26.000Z","updated_at":"2017-12-11T18:34:22.000Z","dependencies_parsed_at":"2022-08-24T14:59:13.287Z","dependency_job_id":null,"html_url":"https://github.com/yiisolutions/yii2-migrations-advanced","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yiisolutions/yii2-migrations-advanced","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisolutions%2Fyii2-migrations-advanced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisolutions%2Fyii2-migrations-advanced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisolutions%2Fyii2-migrations-advanced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisolutions%2Fyii2-migrations-advanced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisolutions","download_url":"https://codeload.github.com/yiisolutions/yii2-migrations-advanced/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisolutions%2Fyii2-migrations-advanced/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34581934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07T21:29:18.087Z","updated_at":"2026-06-20T18:32:01.573Z","avatar_url":"https://github.com/yiisolutions.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-migrations-advanced\n\nAdvanced migrations for Yii2\n\n## Installation\n\nUse composer \n\n```\ncomposer require \"yiisolutions/yii2-migrations-advanced: @dev\"\n```\n\nor add to `composer.json` require section:\n\n```\n\"yiisolutions/yii2-migrations-advanced\": \"@dev\"\n```\n\n## Usage\n\nAdd custom migrate command in `config/console.php` file:\n\n```php\n\u003c?php\n\nreturn [\n    // ...\n    'controllerMap' =\u003e [\n        'migrate' =\u003e [\n            'class' =\u003e 'yiisolutions\\migrations\\commands\\MigrateController',\n            // your config options here ...\n        ],\n    ],\n    // ...\n];\n\n```\n\n### RBAC migrations\n\nSometimes you need to create a migration for RBAC. Use RbacMigrateController for this:\n  \n```php\n\u003c?php\n\nreturn [\n    // ...\n    'controllerMap' =\u003e [\n        'rbac-migrate' =\u003e [\n            'class' =\u003e 'yiisolutions\\migrations\\commands\\RbacMigrateController',\n        ],    \n    ],\n    // ...\n];\n```\n\nFor `rbac-migrate/create` command available templates:\n\n* `create_[name]_role` - create new role migration (options: description, ruleName)\n* `drop_[name]_role` - drop exist role migration\n* `create_[name]_permission` - create new permission migration (options: description, ruleName)\n* `drop_[name]_permission` - drop exist permission migration.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisolutions%2Fyii2-migrations-advanced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisolutions%2Fyii2-migrations-advanced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisolutions%2Fyii2-migrations-advanced/lists"}