Releases: cakephp/migrations
Releases · cakephp/migrations
CakePHP Migrations 1.6.5 released
- Fix a regression that was introduced in the
migration_diff
baking command where all columns for every tables in the connection were added to the migration file. This should not happen anymore. (#279) - Constraints action name are now properly handled when baking a
migration_diff
(#280) - Add support for the
after
attribute in diff : when baking a diff, columns order from the tables are now kept. (#281) - When baking migrations, if the name of migrations provided when calling the bake command follows the "action" convention, the computed table name is not pluralized anymore and follows the input of the user. (#282)
- When baking a snapshot, migrating or rolling back, you can now use a new option
--no-lock
to skip the dump file generation.
CakePHP Migrations 1.6.4 released
- A new option
--data
has been added to thebake 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
- 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
CakePHP Migrations 1.6.2 released
- 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 therequire-table
option when baking snapshot for instance), before being instanciated, theTable
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
- 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
- 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
- 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, theEnvironment
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
CakePHP Migrations 1.5.6 released
- 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).