Releases: cakephp/migrations
CakePHP Migrations 4.6.3
What's Changed
- fix bug with
IDENTITY_INSERT
by @LordSimal in #826 - Use
Arguments::getArrayOption
by @cleptric in #830 - Revert "Use
Arguments::getArrayOption
" by @dereuromark in #832
Full Changelog: 4.6.2...4.6.3
CakePHP Migrations 4.6.2
What's Changed
- Cleanup empty() usage. by @dereuromark in #823
- Update more deprecated method usage by @markstory in #824
- Update sqlserver snapshots by @markstory in #827
- Run latest codesniffer rules by @markstory in #828
Full Changelog: 4.6.1...4.6.2
CakePHP Migrations 4.6.1
What's Changed
- Fix deprecations from setConstraint() by @markstory in #817
- Fix more usage of deprecated methods by @markstory in #818
- 4.x: fix rollback not working with a simple change migration by @LordSimal in #820
- Try to enable deprecations in tests so I can fix more of them by @markstory in #821
- fix migration diff dump source by parsing source parameter by @maidzen in #819
New Contributors
Full Changelog: 4.6.0...4.6.1
CakePHP Migrations 4.6.0
What's Changed
- Fix typos. by @dereuromark in #775
- Avoid timestamp collisions on bake. by @dereuromark in #773
- Add schema support to MS SQL Server by @ovoronyi in #777
- Outline possible configs for easier copy-and-paste by @dereuromark in #779
- Prevent fatal error on reserved keywords as migration names. by @dereuromark in #780
- Tidy up docs and publish migrations/seeds docs by @markstory in #781
- Revert glob escaping. by @dereuromark in #782
- Reword exception message for multiple migrations on same connection. by @kevindecapite in #784
- Bail early by @ravage84 in #785
- Add Migrations middleware by @dereuromark in #774
- Adjust ci by @LordSimal in #787
- Less sprintf in adapters by @markstory in #788
- Port changes from cakephp/phinx#2322 by @markstory in #789
- Add Table::foreignKey() by @markstory in #790
- Update migration generation and docs to use foreignKey() by @markstory in #791
- Add BaseMigration::index() by @markstory in #792
- Added nativeuuid type for databases with a native uuid type by @nicosp in #786
- Add support for partial indexes and concurrent indexes in postgres by @markstory in #793
- Start switching to cakephp/database for schema reflection by @markstory in #794
- Use cakephp/database schema reflection in sqliteadapter by @markstory in #795
- Clean up output from pending migrations middleware. by @markstory in #797
- Use cakephp/database for mysql schema by @markstory in #796
- 5.next update stan by @LordSimal in #799
- Use cakephp/database for postgres schema reflection by @markstory in #798
- Use cakephp/database for sqlserver schema reflection by @markstory in #800
- Consolidate shared code into PdoAdapter by @markstory in #801
- Fix failing tests with MySQL by @markstory in #807
- Add missing array cast in SqliteAdapter by @markstory in #805
- check if bake is loaded in BakeSimpleMigrationCommand by @LordSimal in #808
- Use prepared statements in more places by @markstory in #810
- Flatten PdoAdapter into AbstractAdapter by @markstory in #813
- Remove PdoAdapter by @markstory in #814
- Use cakephp/database for postgres foreign key reflection by @markstory in #815
New Contributors
- @ovoronyi made their first contribution in #777
- @kevindecapite made their first contribution in #784
- @nicosp made their first contribution in #786
Full Changelog: 4.5.0...4.6.0
CakePHP Migrations 4.5.1
What's Changed
- Fix typos. by @dereuromark in #775
- Avoid timestamp collisions on bake. by @dereuromark in #773
- Add schema support to MS SQL Server by @ovoronyi in #777
- Outline possible configs for easier copy-and-paste by @dereuromark in #779
- Prevent fatal error on reserved keywords as migration names. by @dereuromark in #780
- Tidy up docs and publish migrations/seeds docs by @markstory in #781
- Revert glob escaping. by @dereuromark in #782
- Reword exception message for multiple migrations on same connection. by @kevindecapite in #784
- Bail early by @ravage84 in #785
- Add Migrations middleware by @dereuromark in #774
- adjust ci by @LordSimal in #787
- Fix failing tests with MySQL by @markstory in #807
- Add missing array cast in SqliteAdapter by @markstory in #805
New Contributors
- @ovoronyi made their first contribution in #777
- @kevindecapite made their first contribution in #784
Full Changelog: 4.5.0...4.5.1
CakePHP Migrations 4.5.0
This release introduces new base classes for migrations - Migrations\BaseMigration
, and seeds Migrations\BaseSeed
. These new base classes will be used in newly generated migrations, snapshots and diffs if the builtin
backend is enabled. These base classes are not compatible with phinx, and represent the forwards compatible path for applications.
In a future cakephp/upgrade
release a rector rule will be added to change existing migrations to the new base classes.
What's Changed
- Port insert & bulkinsert compatibility from phinx by @markstory in #742
- Start to add Migrations versions of base interfaces by @markstory in #749
- 4.next - Revise the migrations interfaces by @markstory in #750
- Add and use a ShimAdapter by @markstory in #751
- Migrations adapter by @markstory in #752
- Import most of Phinx\Util\Util by @markstory in #753
- Reduce phinx usage and stabilize backend inteface by @markstory in #756
- Fix notice error in ManagerFactory for invalid connections by @markstory in #758
- Remove old config file and improve readme by @markstory in #759
- 4.next - Add base seed by @markstory in #760
- 4.next - Add migration BaseClass by @markstory in #761
- Update bake commands to use builtin base classe by @markstory in #764
- Update documentation on backend status. by @markstory in #763
- Import documentation for seed + migration authoring by @markstory in #765
- Update Bake migration diff to generate with builtin base classes by @markstory in #766
- 4.5 - Update bake migration snapshot for builtin backend by @markstory in #767
Full Changelog: 4.4.2...4.5.0
CakePHP Migrations 4.4.2
CakePHP Migrations 4.4.1
What's Changed
- Correcting getGlobalSchemaName to use the correct schema by @challgren in #728
- Disable foreign key checks when removing temp tables by @markstory in #743
- Add hook method for migrations to skip creating a transaction by @markstory in #745
- Fix compatibility break from phinx by @markstory in #748
Full Changelog: 4.4.0...4.4.1
CakePHP Migrations 4.4.0
Default backend update
Following the addition of the builtin
backend in 4.3.0, the builtin
backend is now the default in 4.4.0. If your migrations don't run correctly with 4.4.0 please open an issue. You can temporarily switch back to the phinx
backend by setting Migrations.backend = 'phinx'
in your config/app.php
.
The phinx
backend is planned for removal in the 5.0 release which will follow 4.4 after collecting feedback from the community for a few months.
What's Changed
- Start update for php 8.4 by @markstory in #729
- Use actual Migrations version in builtin backend doc by @MasterOdin in #733
- update stan by @LordSimal in #734
- 4.next: add PHPUnit 11 support by @LordSimal in #736
- Make builtin the default migrations backend by @markstory in #738
Full Changelog: 4.3.2...4.4.0
CakePHP Migrations 4.3.2
What's Changed
- Add datetime column support to addTimestamps() by @markstory in #721
- Check for potentially undefined command line argument by @markstory in #726
- Add getDecoratedConnection to 4.x by @markstory in #732
Full Changelog: 4.3.1...4.3.2