Skip to content

Releases: cakephp/migrations

CakePHP Migrations 1.6.4 released

29 Nov 13:05
Compare
Choose a tag to compare
  • A new option --data has been added to the bake seed command that will allow you to export data from an existing table. (#191, #260). More informations about the feature will be available soon in the cookbook.
  • Migrations CLI commands exceptions thrown by the business layer are not caught anymore. (#258 / #261).
  • All "*_phinxlog" tables are now skipped when baking a diff (#263 / #267).
  • When baking a migration, default values are now treated as strings : this prevents localized typecast to build erroring migration files (#266, #270).

CakePHP Migrations 1.6.3 released

01 Jul 18:36
Compare
Choose a tag to compare
  • Add support for specifying a nullable field when baking a migration. You can now use a question mark after the field type to tell bake that you want this field to be nullable. Here is an example :
# `description` and `age` fields will be nullable
bin/cake bake migration CreatePerson name:string description:string? age:integer?

More information about baking migrations in the Cookbook

(Issue #203 / PR #249)

  • When a dump file is generated, all tables in the database will be added to it. This is to prevent migrations diff to be include tables already in registered in the database (Issue #232 / PR #248)

CakePHP Migrations 1.6.2 released

16 Jun 18:42
Compare
Choose a tag to compare
  • Seeders can now call other seeders. More details in the Cookbook : http://book.cakephp.org/3.0/en/migrations.html#calling-a-seeder-from-another-seeder (Issue #212 - PR #236)
  • When a migrations command errors, the exit code is now at least 1 (Issue #215 - PR #224)
  • When the table name is fetched from the Table classes (when using the require-table option when baking snapshot for instance), before being instanciated, the Table class is reflected to see if it instanciable. This prevents potential user-land abstract classes to be loaded and throwing exception (Issue #229 - PR #231)
  • Fix the diff baking template (Issue #233 - PR #234)
  • Fix an issue where a property was missing for the dump command to properly work in some cases. (Issue #239 - PR #241).

CakePHP Migrations 1.6.1 released

23 May 20:36
Compare
Choose a tag to compare
  • Fixed a regression introduced in 1.6.0 into the migration baking process when supplying multiple fields to add in the migration
  • Fixed the diff generation with simpler diff that could create invalid code

CakePHP Migrations 1.6.0 released

22 May 15:13
Compare
Choose a tag to compare
  • Add a feature that will allow you to bake a diff between two database states (#217). More infos on the feature and how to use it available in the cookbook
  • Add the name of the migrations to create in the console option parser of baking task. (#222)

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

CakePHP Migrations 1.5.8 released

06 May 21:33
Compare
Choose a tag to compare
  • The table metadata cache is now disabled when using the plugin to avoid exceptions about non-existing columns when a column was added by a migration directly followed by an insert or an update (#201)
  • Bump support to phinx 0.5.3 (#205, #210)
  • Add support for two new features of phinx 0.5.2 : the new status command output (including the name of the migrations) and the fulltext indexes support (for MySQL 5.6+ only) (#206)
  • Improve support for boolean type in baked snapshot (#208)
  • When using the Migrations class, the Environment is reset when the config is changed to avoid reading in the wrong phinxlog table (#209)
  • The MigrationsHelper now uses the cached version of table metadata. This could increase performance when baking snapshots. (#219)

As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.

CakePHP Migrations 1.5.7 released

02 Mar 07:48
Compare
Choose a tag to compare
  • Lock phinx version in order to prevent breakage when a new version of the dependency is released. (#204)
  • Documentation was removed from the README. Please refer to the cookbook to find a full documentation for the plugin. (#200)

CakePHP Migrations 1.5.6 released

10 Feb 13:16
Compare
Choose a tag to compare
  • Simple indexes are now correctly added when baking a snapshot (#192).
  • When using the require-table option or baking a snapshot for a plugin, if your Table objects added the schema name to the table name (using $this->table('myschema.mytable') for instance), the resulting table name in the migration file is now correctly handled (#195).
  • The unsigned attribute is now correctly added when baking a snapshot (#198). (Database vendors do not all support this the same way : make sure to read the documentation of the database vendor you are using for more details).

CakePHP Migrations 1.5.5 released

27 Jan 20:47
Compare
Choose a tag to compare
  • The support of phinx seed feature was added, both for the CLI and the Migrations class (#179 - #181 - #182)
  • The Migrations class markMigrated method was updated to match the state of the CLI command (#185)
  • Various code cleanup

CakePHP Migrations 1.5.4 released

05 Jan 19:08
Compare
Choose a tag to compare