Releases: cakephp/migrations
Releases · cakephp/migrations
2.3.0
Improvements
- Support for phinx 0.11 release.
2.2.0
Improvements
- Added ability to create decimal columns when generating migrations.
- Columns with names of
latitude
andlongitude
will have decimal types inferred if they do not have an explicit type set. - Nullable column detection was improved.
- Documentation for this plugin is now included in the repository.
- Zipball exports no longer include build configuration files.
- The
dry-run
option now works as expected. changeColumn()
can now addautoIncrement
to columns.unique
now works as an attribute for columns.
2.1.1
Bugfixes
- Fixed snapshot creation for tables with no primary keys
- Use relative path instead of plugin path
2.1.0
Improvements
- Removed deprecations
- Uses CONFIG constant if defined
2.0.0
- Upgraded phinx to version 0.10.3
- Requires CakePHP >= 3.6
Important
Since the new version of phinx is a breaking version, you are highly encouraged to take a snapshot of the database state right after upgrading with the following steps
- Run all your pending migrations
bin/cake migrate
- Upgrade this plugin with
composer require cakephp/migrations=^2.0.0
- Take a snapshot of the database
bin/cake bake migration_snapshot AfterUpgradeMigrations
- Mark the snapshot as already applied
bin/cake migrations mark_migrated
. Make sure this migration is also marked as migrated in your other environments.
If you don't want through the process of updating the code in old migrations, it is recommended to delete any migration files previous to the latest snapshot.
CakePHP Migrations 1.7.2
DumpTask has been added to avoid Task
Dump not found
error.
CakePHP Migrations 1.7.1
The error when baking a seed class has been fixed.
CakePHP Migrations 1.7.0 Released
- Upgraded to Phinx 0.8.1
- Disabled foreign key handling for SQLite due to an important bug in how it is done in phinx. It will be restored at a later release.
- Many bugfixes
CakePHP Migrations 1.6.7
- Correctly creating empty dump files when connecting to an empty database
- Fixed issue with seeds introduced in version 1.6.6
- Improved database diff generation
CakePHP Migrations 1.6.6 released
- Updated the phinx dependency to its latest version (0.6.5) (#291)
- When baking a migration and making a field
null
using the?
option, it was not possible to specify a length for the field. This has been fixed (#290). You can now use a command similar to this :
bin/cake bake migration name:string?[50]