yiisoft/yii-db-migration

This package is abandoned and no longer maintained. The author suggests using the yiisoft/db-migration package instead.

Yii DB Migration

Package info

github.com/yiisoft/db-migration

Homepage

Chat

Forum

Wiki

pkg:composer/yiisoft/yii-db-migration

Fund package maintenance!

Opencollective

yiisoft

Statistics

Installs: 35 107

Dependents: 4

Suggesters: 2

Stars: 32

Open Issues: 22

2.0.1 2025-12-20 06:57 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause d4ea29b625d2c6cb77a935a9b51a654b305e36fe

dbmigrationyii


README

πŸ‘ Yii

Yii DB Migration


πŸ‘ Latest Stable Version
πŸ‘ Total Downloads
πŸ‘ Build status
πŸ‘ codecov
πŸ‘ Mutation testing badge
πŸ‘ Static analysis
πŸ‘ type-coverage

Yii DB Migration allows you to manage database schema using migrations.

Supports the following databases out of the box:

DBMS Version
MSSQL 2017, 2019, 2022
MySQL 5.7–8.0
MariaDB 10.4–10.9
Oracle 12c–21c
PostgreSQL 9.6–15
SQLite 3.3 and above

Requirements

  • PHP 8.1 - 8.5.

Installation

The package could be installed with Composer:

composer require yiisoft/db-migration

Command list

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

If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.

License

The Yii DB Migration is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

πŸ‘ Open Collective

Follow updates

πŸ‘ Official website
πŸ‘ Twitter
πŸ‘ Telegram
πŸ‘ Facebook
πŸ‘ Slack