{"id":14966350,"url":"https://github.com/yiisoft/db-migration","last_synced_at":"2025-04-10T20:32:25.068Z","repository":{"id":39225760,"uuid":"183216551","full_name":"yiisoft/db-migration","owner":"yiisoft","description":"The package implementing migration for yiisoft/db.","archived":false,"fork":false,"pushed_at":"2024-07-12T05:46:35.000Z","size":625,"stargazers_count":29,"open_issues_count":20,"forks_count":16,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-10-29T14:35:34.280Z","etag":null,"topics":["db","hacktoberfest","migration","yii3"],"latest_commit_sha":null,"homepage":"https://www.yiiframework.com/","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/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"]}},"created_at":"2019-04-24T11:38:39.000Z","updated_at":"2024-07-12T05:46:38.000Z","dependencies_parsed_at":"2023-09-24T11:57:59.248Z","dependency_job_id":"ea904a96-3633-4720-b853-54a6e4998ddc","html_url":"https://github.com/yiisoft/db-migration","commit_stats":{"total_commits":231,"total_committers":25,"mean_commits":9.24,"dds":0.7748917748917749,"last_synced_commit":"192577db693409ab9638ed01bdf345b76dcb9ac7"},"previous_names":["yiisoft/db-migration","yiisoft/yii-db-migration"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fdb-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fdb-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fdb-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fdb-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/db-migration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290019,"owners_count":21078923,"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":["db","hacktoberfest","migration","yii3"],"created_at":"2024-09-24T13:36:15.473Z","updated_at":"2025-04-10T20:32:25.047Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://yiisoft.github.io/docs/images/yii_logo.svg\" height=\"100px\" alt=\"Yii\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eYii DB Migration\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-migration/v)](https://packagist.org/packages/yiisoft/db-migration)\n[![Total Downloads](https://poser.pugx.org/yiisoft/db-migration/downloads)](https://packagist.org/packages/yiisoft/db-migration)\n[![Build status](https://github.com/yiisoft/db-migration/actions/workflows/build.yml/badge.svg)](https://github.com/yiisoft/db-migration/actions/workflows/build.yml)\n[![codecov](https://codecov.io/gh/yiisoft/db-migration/graph/badge.svg?token=CCRKELEOHP)](https://codecov.io/gh/yiisoft/db-migration)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fdb-migration%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-migration/master)\n[![static analysis](https://github.com/yiisoft/db-migration/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/db-migration/actions?query=workflow%3A%22static+analysis%22)\n[![type-coverage](https://shepherd.dev/github/yiisoft/db-migration/coverage.svg)](https://shepherd.dev/github/yiisoft/db-migration)\n\nYii DB Migration allows you to manage database schema using migrations.\n\nSupports the following databases out of the box:\n\n| DBMS | Version |\n|----|----------|\n| [MSSQL](https://www.microsoft.com/en-us/sql-server/sql-server-2019) | **2017, 2019, 2022** |\n| [MySQL](https://www.mysql.com/) | **5.7–8.0** |\n| [MariaDB](https://mariadb.org/) | **10.4–10.9** |\n| [Oracle](https://www.oracle.com/database/) | **12c–21c** |\n| [PostgreSQL](https://www.postgresql.org/) |  **9.6–15** |\n| [SQLite](https://www.sqlite.org) | **3.3 and above** |\n\n## Requirements\n\n- PHP 8.1 - 8.4.\n\n## Installation\n\nThe package could be installed with [Composer](https://getcomposer.org):\n\n```shell\ncomposer require yiisoft/db-migration\n```\n\n## Command list\n\n```text\nmigrate:create   Creates a new migration.\nmigrate:down     Reverts the specified number of latest migrations.\nmigrate:history  Displays the migration history.\nmigrate:new      Displays not yet applied migrations.\nmigrate:redo     Redoes the last few migrations.\nmigrate:up       Applies new migrations.\n```\n\nThe create command allows defining fields for the table being created.\n\n## Documentation\n\n- Guide: [English](docs/guide/en/README.md), [Português - Brasil](docs/guide/pt-BR/README.md)\n- [Internals](docs/internals.md)\n\nIf you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.\nYou may also check out other [Yii Community Resources](https://www.yiiframework.com/community).\n\n## License\n\nThe Yii DB Migration is free software. It is released under the terms of the BSD License.\nPlease see [`LICENSE`](./LICENSE.md) for more information.\n\nMaintained by [Yii Software](https://www.yiiframework.com/).\n\n## Support the project\n\n[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective\u0026logoColor=7eadf1\u0026labelColor=555555)](https://opencollective.com/yiisoft)\n\n## Follow updates\n\n[![Official website](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)\n[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter\u0026logoColor=1DA1F2\u0026labelColor=555555?style=flat)](https://twitter.com/yiiframework)\n[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat\u0026logo=telegram)](https://t.me/yii3en)\n[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat\u0026logo=facebook\u0026logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)\n[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat\u0026logo=slack)](https://yiiframework.com/go/slack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fdb-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fdb-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fdb-migration/lists"}