Skip to content

Releases: bizley/yii2-migration

2.3.1

01 Jul 14:43
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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.

2.1.1

04 Apr 15:53
Compare
Choose a tag to compare

New option added: skipMigrations

List of migrations from the history table that should be skipped during the update process. (default [])
Here you can place migrations containing actions that can not be covered by extractor i.e. when there is migration setting the RBAC hierarchy with authManager component. Such actions should be kept in separated migration and placed on this list to prevent them from being run during the extraction process.

Fixed bugs:

  • options available for update action are also available for update-all action now.

2.1

30 Mar 09:38
Compare
Choose a tag to compare
2.1
  • New actions list and create-all added (thanks to @thyseus),
  • New action update-all added,
  • Namespaced migrations are properly extracted now,
  • Missing migration history file error is now properly handled.