Releases: cakephp/phinx
Releases · cakephp/phinx
0.16.5
Bug Fixes
- Fix using schema option with connection option by @MasterOdin in #2316
Full Changelog: 0.16.4...0.16.5
0.16.4
Bug Fixes
- fix warning in info when using connection config by @MasterOdin in #2312
Miscellaneous
- Use token for codecov GH action by @MasterOdin in #2310
Full Changelog: 0.16.3...0.16.4
0.16.3
Features
- Add dry-run option to seed:run by @MasterOdin in #2299
- Support Literal values in inserts by @MasterOdin in #2301
Bug Fixes
- Fix setting sqlsrv PK name with qualified table name by @MichaelDesignamite in #2306
- Append sqlite suffix to name on info output by @MasterOdin in #2307
Documentation
- Fix README badges by @MasterOdin in #2296
- Update migrations.rst by @MarwanSalim in #2303
Misc
- Consolidate insert/bulkInsert implementations by @MasterOdin in #2300
- DRY info output for console commands by @MasterOdin in #2302
- Fix phpcs error in PDOAdapter by @MasterOdin in #2308
- Move schema to class property for PostgresAdapter by @MasterOdin in #2309
Note: ThePostgresAdapter::getGlobalSchemaName
protected function has been removed. Use thePostgresAdapter::$schema
class member variable instead.
New Contributors
- @MarwanSalim made their first contribution in #2303
- @MichaelDesignamite made their first contribution in #2306
Full Changelog: 0.16.2...0.16.3
0.16.2
Features
- Add migration version and name to pending actions error by @ajibarra in #2289
- Show version in CLI by @MasterOdin in #2291
- Mark password as a SensitiveParameter by @edudobay in #2295
Bug Fixes
- Fix using string primary_key value for sqlite by @MasterOdin in #2285
- Fix quoting DB name when creating/dropping by @MasterOdin in #2286
- Fix escaping database name for SqlServerAdapter::dropDatabase by @MasterOdin in #2287
Documentation
- Fix docs example for migrate create by @MasterOdin in #2284
New Contributors
Full Changelog: 0.16.1...0.16.2
0.16.1
Features
- Option for addTimeStamps() to use datetime by @joshbmarshall in #2273
Bug Fixes
- Fixing errors when migration name is null by @jaydiablo in #2268
- Move postFlighCheck to be called before commit transaction by @ajibarra in #2272
- Fix renaming column with Extra info set by @MasterOdin in #2275
Miscellaneous
- Bump codecov/codecov-action from 3 to 4 by @dependabot in #2265
- Fix mysql latest CI workflow by @MasterOdin in #2276
- Fix tests for MySQL 8.4 by @ajibarra in #2281
- Update box.json to include vendor/symfony/console/Resources by @ajibarra in #2280
- Update docs for 0.16.x by @ajibarra in #2279
New Contributors
- @jaydiablo made their first contribution in #2268
- @joshbmarshall made their first contribution in #2273
Full Changelog: 0.16.0...0.16.1
0.16.0
Breaking Changes
- Validate datetime for version by @dereuromark in #2249
When usingAbstratMigration
class, when it's instantiated, the version will be validated that it is 14 characters (YYYYMMDDHHmmSS
). A future version may strengthen this to validate that it's a valid datetime. To get prior behavior, will need to extend theAbstractMigration
class and either override the constructor or the newvalidateVersion
method. - Fix inconsistencies with hasPrimaryKey by @DrewKolstad in #2228
PreviouslyhasPrimaryKey
would return inconsistently if the passed array of columns was a subset/superset of actual primary keys. This function should now only returntrue
iff the passed array of columns strictly matches the actual list of primary key columns (same length and values). Postgres and SQLServer are case sensitive, while MySQL and SQLite are case insensitive.
Fixes
- Fix setting faked migrations as migrated by @MasterOdin in #2252
- Fix for MySQL 8 DEFAULT_GENERATED extra by @cergfix in #2253
- Fix fatal errors when calling get methods by @markstory in #2257
- Fix using literal type with add column by @ndm2 in #2255
- Make Abstract{Migration,Seed}::getAdapter return non-null by @MasterOdin in #2261
Docs
- Reword null option description by @MasterOdin in #2262
Misc
- Bump actions/cache from 3 to 4 by @dependabot in #2260
New Contributors
- @DrewKolstad made their first contribution in #2228
- @cergfix made their first contribution in #2253
Full Changelog: 0.15.5...0.16.0
0.15.5
0.15.4
Fixes
- Correct type for migrate target option by @wallacio in #2241
- Fix up UUID binary16 support for Sqlite by @dereuromark in #2239
Note: Columns created in Sqlite before 0.15.4 using the PdoAdapter::PHINX_TYPE_BINARYUUID
type were binary_blob
. In 0.15.4 they were changed to be type uuid_blob
. If you rely on this constant, you will need to manually update the types of any columns using PdoAdapter::PHINX_TYPE_BINARYUUID
to the new value.
Note: binary(16) support for Sqlite inside CakePHP requires v5.0.3+.
New Contributors
Full Changelog: 0.15.3...0.15.4
0.15.3
Fixes
- Fix using test command when manually setting config by @MasterOdin in #2235
- Fix default to null for type of column in addColumn by @gaydamakha in #2236
- Loosen psr/container version constraint by @MasterOdin in #2237
Docs
- Update minimum PHP version in docs by @coderanger in #2232
New Contributors
- @coderanger made their first contribution in #2232
- @gaydamakha made their first contribution in #2236
Full Changelog: 0.15.2...0.15.3
0.15.2
Fixes
- Allow Table::addColumn() to use type from Column object again by @othercorey in #2224
Full Changelog: 0.15.1...0.15.2