Skip to content

Releases: bizley/yii2-migration

2.3.2

10 Sep 21:36

Choose a tag to compare

  • Controller actions return error codes and not just an OK code no matter what.
  • Non-existing database tables properly trigger errors.
  • create-all and update-all actions use console confirm method instead of prompt.
  • Travis service in use for tests.

3.0.1

01 Jul 14:42

Choose a tag to compare

  • Fixed bug with size / precision not being tracked properly.
  • Fixed bug with primary key given through append not being recognised properly.

2.3.1

01 Jul 14:43

Choose a tag to compare

  • Fixed bug with size / precision not being tracked properly.
  • Fixed bug with primary key given through append not being recognised properly.

3.0.0

08 Jun 18:07

Choose a tag to compare

2.x and 3.x branches split

Since 3.0.0 minimum PHP version is 7.1.0 and minimum Yii version is 2.0.15.1.
Older versions are still supported in 2.x branch.

No changes are made here except coding style and structure.

2.3.0

29 Mar 18:23

Choose a tag to compare

Package has been rewritten for more object-oriented approach.

  • Minimum Yii version is raised up to 2.0.11.
  • Maximum Yii version is set to lower than 2.1.0.
  • Extractor class is gone.
  • Multiple table structure classes have been added.
  • General PHPUnit test and MySQL specific tests have been added.
  • Default value of generalSchema property is now 1.

New features:

  • TINYINT and JSON support added (works only for Yii 2.0.14 and newer).
  • Non-unique indexes tracking added (works only for Yii 2.0.13 and newer).
  • ON DELETE and ON UPDATE options tracking for foreign keys added (works only for Yii 2.0.13 and newer).
  • Migration history table is automatically skipped when running create-all and update-all actions.

2.2.3

10 Mar 08:35
5508760

Choose a tag to compare

Fixed bug with comments, default values, and default value expression not being properly escaped in case of using ' character.

2.2.2

06 Mar 09:21
b90f427

Choose a tag to compare

Fixed bug with table name prefix not being removed when useTablePrefix is on.

2.2.1

24 Nov 18:24
414bb65

Choose a tag to compare

Fixed bug with precision / scale value of 0 was not rendered in generated migration.

2.2.0

14 May 13:08

Choose a tag to compare

Fixes:

  • generated namespaced class names are compatible with Yii 2 core,
  • because of that decision mechanism has been removed (unnecessary now),
  • namespaced migrations can be properly extracted now,
  • namespaced migrations are added to history with namespace,
  • mixed classic and namespaced migrations can be properly located.

Unfortunately namespaced migrations generated with previous version of this extension must be regenerated or modified manually.

Removed options:

  • defaultDecision,
  • migrationNamespaces,

Removed option aliases:

  • k

2.1.2

12 Apr 16:51

Choose a tag to compare

Fixes:

  • arguments order in Extractor corrected,
  • protected methods in Extractor are properly called now,
  • unnecessary options for list action in controller removed,
  • redundant method renderPrimaryKey() in Generator removed,
  • corrected composite primary keys handling,
  • primary key constraint name changed to 'primary_key' because of the MySQL error.

Added information in README about renaming columns and tables.