Skip to content

Commit 3d8bcf8

Browse files
author
Paweł Brzozowski
committed
2.6.0
1 parent dd9c384 commit 3d8bcf8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ Add the package to your composer.json:
1515

1616
{
1717
"require": {
18-
"bizley/migration": "^3.2"
18+
"bizley/migration": "^3.3"
1919
}
2020
}
2121

22-
and run `composer update` or alternatively run `composer require bizley/migration:^3.2`
22+
and run `composer update` or alternatively run `composer require bizley/migration:^3.3`
2323

2424
## Installation for PHP < 7.1
2525

2626
Add the package to your composer.json:
2727

2828
{
2929
"require": {
30-
"bizley/migration": "^2.5"
30+
"bizley/migration": "^2.6"
3131
}
3232
}
3333

34-
and run `composer update` or alternatively run `composer require bizley/migration:^2.5`
34+
and run `composer update` or alternatively run `composer require bizley/migration:^2.6`
3535

3636
## Configuration
3737

@@ -151,6 +151,9 @@ default `yii\db\Migration` methods can be recognised (with the exception of `exe
151151
`dropCommentFromTable()` methods). Changes made to table's data (like `insert()`, `upsert()`, `delete()`, `truncate()`,
152152
etc.) are not tracked.
153153

154+
Updating migrations process requires for methods `createTable()`, `addColumn()`, and `alterColumn()` to provide changes
155+
in columns definition in form of an instance of `yii\db\ColumnSchemaBuilder` (like `$this->string()` instead of `'varchar(255)'`).
156+
154157
## Tests
155158

156159
Tests for MySQL, PostgreSQL, and SQLite. Database configuration is stored in `tests/config.php` (you can override it by

0 commit comments

Comments
 (0)