Skip to content

Releases: cakephp/migrations

2.2.0

22 Jul 03:08
38fbee6
Compare
Choose a tag to compare

Improvements

  • Added ability to create decimal columns when generating migrations.
  • Columns with names of latitude and longitude 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 add autoIncrement to columns.
  • unique now works as an attribute for columns.

2.1.1

26 Mar 11:41
96e3cc0
Compare
Choose a tag to compare

Bugfixes

  • Fixed snapshot creation for tables with no primary keys
  • Use relative path instead of plugin path

2.1.0

25 Dec 20:14
b514818
Compare
Choose a tag to compare

Improvements

  • Removed deprecations
  • Uses CONFIG constant if defined

2.0.0

22 Jun 13:42
928389e
Compare
Choose a tag to compare
  • 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

16 Dec 23:26
a5612ad
Compare
Choose a tag to compare

DumpTask has been added to avoid Task Dump not found error.

CakePHP Migrations 1.7.1

05 Aug 13:17
Compare
Choose a tag to compare

The error when baking a seed class has been fixed.

CakePHP Migrations 1.7.0 Released

01 Aug 09:33
Compare
Choose a tag to compare
  • 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

07 Jan 16:47
Compare
Choose a tag to compare
  • 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

02 Jan 21:34
Compare
Choose a tag to compare
  • 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]
  • When baking a migration, column name that ends with _at will automatically be detected as datetime columns (#292)
  • When baking a diff, the column properties limit, default and null are always added to addColumn and changeColumn instructions : this prevents data-desynchronization (#293)

CakePHP Migrations 1.6.5 released

30 Dec 21:14
Compare
Choose a tag to compare
  • 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.