https://github.com/yiisoft/db-migration
The package implementing migration for yiisoft/db.
https://github.com/yiisoft/db-migration
db hacktoberfest migration yii3
Last synced: about 2 months ago
JSON representation
The package implementing migration for yiisoft/db.
- Host: GitHub
- URL: https://github.com/yiisoft/db-migration
- Owner: yiisoft
- License: bsd-3-clause
- Created: 2019-04-24T11:38:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T05:46:35.000Z (11 months ago)
- Last Synced: 2024-10-29T14:35:34.280Z (7 months ago)
- Topics: db, hacktoberfest, migration, yii3
- Language: PHP
- Homepage: https://www.yiiframework.com/
- Size: 610 KB
- Stars: 29
- Watchers: 20
- Forks: 16
- Open Issues: 20
-
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
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Yii DB Migration
[](https://packagist.org/packages/yiisoft/db-migration)
[](https://packagist.org/packages/yiisoft/db-migration)
[](https://github.com/yiisoft/db-migration/actions/workflows/build.yml)
[](https://codecov.io/gh/yiisoft/db-migration)
[](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-migration/master)
[](https://github.com/yiisoft/db-migration/actions?query=workflow%3A%22static+analysis%22)
[](https://shepherd.dev/github/yiisoft/db-migration)Yii DB Migration allows you to manage database schema using migrations.
Supports the following databases out of the box:
| DBMS | Version |
|----|----------|
| [MSSQL](https://www.microsoft.com/en-us/sql-server/sql-server-2019) | **2017, 2019, 2022** |
| [MySQL](https://www.mysql.com/) | **5.7–8.0** |
| [MariaDB](https://mariadb.org/) | **10.4–10.9** |
| [Oracle](https://www.oracle.com/database/) | **12c–21c** |
| [PostgreSQL](https://www.postgresql.org/) | **9.6–15** |
| [SQLite](https://www.sqlite.org) | **3.3 and above** |## Requirements
- PHP 8.1 - 8.4.
## Installation
The package could be installed with [Composer](https://getcomposer.org):
```shell
composer require yiisoft/db-migration
```## Command list
```text
migrate:create Creates a new migration.
migrate:down Reverts the specified number of latest migrations.
migrate:history Displays the migration history.
migrate:new Displays not yet applied migrations.
migrate:redo Redoes the last few migrations.
migrate:up Applies new migrations.
```The create command allows defining fields for the table being created.
## Documentation
- Guide: [English](docs/guide/en/README.md), [Português - Brasil](docs/guide/pt-BR/README.md)
- [Internals](docs/internals.md)If 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.
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).## License
The Yii DB Migration is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.Maintained by [Yii Software](https://www.yiiframework.com/).
## Support the project
[](https://opencollective.com/yiisoft)
## Follow updates
[](https://www.yiiframework.com/)
[](https://twitter.com/yiiframework)
[](https://t.me/yii3en)
[](https://www.facebook.com/groups/yiitalk)
[](https://yiiframework.com/go/slack)