wp-orm
wp-orm copied to clipboard
Update dependency robmorgan/phinx to ^0.16.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| robmorgan/phinx (source) | ^0.12.5 -> ^0.16.0 |
Release Notes
cakephp/phinx (robmorgan/phinx)
v0.16.3
Features
- Add dry-run option to seed:run by @MasterOdin in https://github.com/cakephp/phinx/pull/2299
- Support Literal values in inserts by @MasterOdin in https://github.com/cakephp/phinx/pull/2301
Bug Fixes
- Fix setting sqlsrv PK name with qualified table name by @MichaelDesignamite in https://github.com/cakephp/phinx/pull/2306
- Append sqlite suffix to name on info output by @MasterOdin in https://github.com/cakephp/phinx/pull/2307
Documentation
- Fix README badges by @MasterOdin in https://github.com/cakephp/phinx/pull/2296
- Update migrations.rst by @MarwanSalim in https://github.com/cakephp/phinx/pull/2303
Misc
- Consolidate insert/bulkInsert implementations by @MasterOdin in https://github.com/cakephp/phinx/pull/2300
- DRY info output for console commands by @MasterOdin in https://github.com/cakephp/phinx/pull/2302
- Fix phpcs error in PDOAdapter by @MasterOdin in https://github.com/cakephp/phinx/pull/2308
- Move schema to class property for PostgresAdapter by @MasterOdin in https://github.com/cakephp/phinx/pull/2309
Note: The
PostgresAdapter::getGlobalSchemaNameprotected function has been removed. Use thePostgresAdapter::$schemaclass member variable instead.
New Contributors
- @MarwanSalim made their first contribution in https://github.com/cakephp/phinx/pull/2303
- @MichaelDesignamite made their first contribution in https://github.com/cakephp/phinx/pull/2306
Full Changelog: https://github.com/cakephp/phinx/compare/0.16.2...0.16.3
v0.16.2
Features
- Add migration version and name to pending actions error by @ajibarra in https://github.com/cakephp/phinx/pull/2289
- Show version in CLI by @MasterOdin in https://github.com/cakephp/phinx/pull/2291
- Mark password as a SensitiveParameter by @edudobay in https://github.com/cakephp/phinx/pull/2295
Bug Fixes
- Fix using string primary_key value for sqlite by @MasterOdin in https://github.com/cakephp/phinx/pull/2285
- Fix quoting DB name when creating/dropping by @MasterOdin in https://github.com/cakephp/phinx/pull/2286
- Fix escaping database name for SqlServerAdapter::dropDatabase by @MasterOdin in https://github.com/cakephp/phinx/pull/2287
Documentation
- Fix docs example for migrate create by @MasterOdin in https://github.com/cakephp/phinx/pull/2284
New Contributors
- @edudobay made their first contribution in https://github.com/cakephp/phinx/pull/2295
Full Changelog: https://github.com/cakephp/phinx/compare/0.16.1...0.16.2
v0.16.1
Features
- Option for addTimeStamps() to use datetime by @joshbmarshall in https://github.com/cakephp/phinx/pull/2273
Bug Fixes
- Fixing errors when migration name is null by @jaydiablo in https://github.com/cakephp/phinx/pull/2268
- Move postFlighCheck to be called before commit transaction by @ajibarra in https://github.com/cakephp/phinx/pull/2272
- Fix renaming column with Extra info set by @MasterOdin in https://github.com/cakephp/phinx/pull/2275
Miscellaneous
- Bump codecov/codecov-action from 3 to 4 by @dependabot in https://github.com/cakephp/phinx/pull/2265
- Fix mysql latest CI workflow by @MasterOdin in https://github.com/cakephp/phinx/pull/2276
- Fix tests for MySQL 8.4 by @ajibarra in https://github.com/cakephp/phinx/pull/2281
- Update box.json to include vendor/symfony/console/Resources by @ajibarra in https://github.com/cakephp/phinx/pull/2280
- Update docs for 0.16.x by @ajibarra in https://github.com/cakephp/phinx/pull/2279
New Contributors
- @jaydiablo made their first contribution in https://github.com/cakephp/phinx/pull/2268
- @joshbmarshall made their first contribution in https://github.com/cakephp/phinx/pull/2273
Full Changelog: https://github.com/cakephp/phinx/compare/0.16.0...0.16.1
v0.16.0
Breaking Changes
- Validate datetime for version by @dereuromark in https://github.com/cakephp/phinx/pull/2249
When using
AbstratMigrationclass, 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 theAbstractMigrationclass and either override the constructor or the newvalidateVersionmethod. - Fix inconsistencies with hasPrimaryKey by @DrewKolstad in https://github.com/cakephp/phinx/pull/2228
Previously
hasPrimaryKeywould return inconsistently if the passed array of columns was a subset/superset of actual primary keys. This function should now only returntrueiff 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 https://github.com/cakephp/phinx/pull/2252
- Fix for MySQL 8 DEFAULT_GENERATED extra by @cergfix in https://github.com/cakephp/phinx/pull/2253
- Fix fatal errors when calling get methods by @markstory in https://github.com/cakephp/phinx/pull/2257
- Fix using literal type with add column by @ndm2 in https://github.com/cakephp/phinx/pull/2255
- Make Abstract{Migration,Seed}::getAdapter return non-null by @MasterOdin in https://github.com/cakephp/phinx/pull/2261
Docs
- Reword null option description by @MasterOdin in https://github.com/cakephp/phinx/pull/2262
Misc
- Bump actions/cache from 3 to 4 by @dependabot in https://github.com/cakephp/phinx/pull/2260
New Contributors
- @DrewKolstad made their first contribution in https://github.com/cakephp/phinx/pull/2228
- @cergfix made their first contribution in https://github.com/cakephp/phinx/pull/2253
Full Changelog: https://github.com/cakephp/phinx/compare/0.15.5...0.16.0
v0.15.5
What's Changed
- Introduce getQueryBuilder aliases for specific database actions by @wallacio in https://github.com/cakephp/phinx/pull/2242
- Add Symfony 7 support by @Slamdunk in https://github.com/cakephp/phinx/pull/2246
New Contributors
- @Slamdunk made their first contribution in https://github.com/cakephp/phinx/pull/2246
Full Changelog: https://github.com/cakephp/phinx/compare/0.15.4...0.15.5
v0.15.4
Fixes
- Correct type for migrate target option by @wallacio in https://github.com/cakephp/phinx/pull/2241
- Fix up UUID binary16 support for Sqlite by @dereuromark in https://github.com/cakephp/phinx/pull/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
- @wallacio made their first contribution in https://github.com/cakephp/phinx/pull/2241
Full Changelog: https://github.com/cakephp/phinx/compare/0.15.3...0.15.4
v0.15.3
Fixes
- Fix using test command when manually setting config by @MasterOdin in https://github.com/cakephp/phinx/pull/2235
- Fix default to null for type of column in addColumn by @gaydamakha in https://github.com/cakephp/phinx/pull/2236
- Loosen psr/container version constraint by @MasterOdin in https://github.com/cakephp/phinx/pull/2237
Docs
- Update minimum PHP version in docs by @coderanger in https://github.com/cakephp/phinx/pull/2232
New Contributors
- @coderanger made their first contribution in https://github.com/cakephp/phinx/pull/2232
- @gaydamakha made their first contribution in https://github.com/cakephp/phinx/pull/2236
Full Changelog: https://github.com/cakephp/phinx/compare/0.15.2...0.15.3
v0.15.2
Fixes
- Allow Table::addColumn() to use type from Column object again by @othercorey in https://github.com/cakephp/phinx/pull/2224
Full Changelog: https://github.com/cakephp/phinx/compare/0.15.1...0.15.2
v0.15.1
Fixes
- Ensure
PostgresAdapter::useIdentityis always initialized by @othercorey in https://github.com/cakephp/phinx/pull/2223
Full Changelog: https://github.com/cakephp/phinx/compare/0.15.0...0.15.1
v0.15.0
Note: The 2.0.0, 2.0.1, and 2.0.2 tags were created incorrectly, and have been deleted and will be removed from packagist. This release features all of the same features and changes that was in those releases. We are still using 0.x releases as the API is not yet considered stable, as evidenced by the breaking change below.
Breaking Changes
PHP 8.1 / Type declarations
This release requires PHP 8.1 or greater to be installed to use Phinx. As part of this, a number of type declarations were changed throughout Phinx to take advantage of the expanded syntax allowed by PHP 8.1. See https://github.com/cakephp/phinx/pull/2218 for all the files affected.
For users that overwrite $autoId in their migration class, this will now need a bool type declaration:
public bool $autoId = false;
Foreign Key Handling
In previous versions, Phinx was inconsistent with how it handled foreign keys across the adapters. Per https://github.com/cakephp/phinx/pull/2212, here is the old and new behaviors:
Currently the behavior looks like this:
MySQL Postgres Sqlite SQL Server Case-sensitive drop no yes yes no¹ Case-sensitive lookup yes yes no yes¹ Multi-column drop no² yes no³ no² Drop all column matches yes yes no yes Column order dependent drop no no no no Column order dependent lookup yes no no no Silently drop non-existent by columns no yes no yes Silently drop non-existent by name no no - no 1) In a case sensitive database the query would produce an error. 2) Generates duplicate drop instructions, one for every key that has any of the given columns. 3) For every column, the first key that starts with that column would be deleted.
With these changes, the new behavior would be as follows:
MySQL Postgres Sqlite SQL Server Case-sensitive drop no yes¹ no yes¹ Case-sensitive lookup no yes¹ no yes¹ Multi-column drop yes yes yes yes Drop all column matches yes yes yes yes Column order dependent drop yes yes yes yes Column order dependent lookup yes yes yes yes Silently drop non-existent by columns no no no no Silently drop non-existent by name no no - no 1) The behavior is independent of whether the database/column is actually case-sensitive.
Features
- Require PHP 8.1+
- Update for Cake 5 by @ADmad in https://github.com/cakephp/phinx/pull/2106
- Add/improve type declarations for PHP 8.1 by @othercorey in https://github.com/cakephp/phinx/pull/2218
- Unify multi-column foreign key handling by @ndm2 in https://github.com/cakephp/phinx/pull/2212
- Add declare strict_types to seed template by @MasterOdin in https://github.com/cakephp/phinx/pull/2220
Docs
- fix phinx link by @Arhell in https://github.com/cakephp/phinx/pull/2179
- update phinx link by @Arhell in https://github.com/cakephp/phinx/pull/2180
- Fix grammar in configuration doc by @Jonezzyboy in https://github.com/cakephp/phinx/pull/2219
New Contributors
- @Jonezzyboy made their first contribution in https://github.com/cakephp/phinx/pull/2219
Full Changelog: https://github.com/cakephp/phinx/compare/0.14.0...0.15.0
v0.14.0
Breaking Changes
- Require php-64bit to install phinx by @MasterOdin in https://github.com/cakephp/phinx/pull/2169
- Min PHP 7.3 by @dereuromark in https://github.com/cakephp/phinx/pull/2167
Fixes
- Fix recreating indices for renamed/removed columns. by @ndm2 in https://github.com/cakephp/phinx/pull/2134
- Refactor foreign keys switching. by @ndm2 in https://github.com/cakephp/phinx/pull/2171
- Fix blank line above declare statement, see PSR-12 by @chrisblech in https://github.com/cakephp/phinx/pull/2175
- Add existing comment to column object for mysql by @alex-jonas in https://github.com/cakephp/phinx/pull/2174
- Update phinxlog as part of migration transaction by @JRDuncan in https://github.com/cakephp/phinx/pull/2181
- Fix missing quoting on constraints name for sqlserver by @algorhythm in https://github.com/cakephp/phinx/pull/2186
- Make check for CURRENT_TIMESTAMP in default value case insensitive by @vuyiswankosi in https://github.com/cakephp/phinx/pull/2190
- Cache created decorated connection by @MasterOdin in https://github.com/cakephp/phinx/pull/2191
- Fix grammar in exception message by @cnizzardini in https://github.com/cakephp/phinx/pull/2203
- Fix PostgresAdapter not returning limit for char and varchar by @roblperry in https://github.com/cakephp/phinx/pull/2214
- Fix 2193 Postgres GENERATED ALWAYS by @captain-redbeard in https://github.com/cakephp/phinx/pull/2195
Docs
- Update license copyright to CakePHP Software Foundation by @MasterOdin in https://github.com/cakephp/phinx/pull/2170
- update phinx link by @Arhell in https://github.com/cakephp/phinx/pull/2177
- Add note about MyISAM length limitation by @naidim in https://github.com/cakephp/phinx/pull/2204
- Clarify where feature flags are in configuration file with a YAML example by @SteenSchutt in https://github.com/cakephp/phinx/pull/2206
New Contributors
- @chrisblech made their first contribution in https://github.com/cakephp/phinx/pull/2175
- @alex-jonas made their first contribution in https://github.com/cakephp/phinx/pull/2174
- @algorhythm made their first contribution in https://github.com/cakephp/phinx/pull/2186
- @vuyiswankosi made their first contribution in https://github.com/cakephp/phinx/pull/2190
- @naidim made their first contribution in https://github.com/cakephp/phinx/pull/2204
- @SteenSchutt made their first contribution in https://github.com/cakephp/phinx/pull/2206
- @roblperry made their first contribution in https://github.com/cakephp/phinx/pull/2214
- @captain-redbeard made their first contribution in https://github.com/cakephp/phinx/pull/2195
Full Changelog: https://github.com/cakephp/phinx/compare/0.13.4...0.14.0
v0.13.4
Feature Flags
This release adds feature flags, which allows for toggling behavior of Phinx to better fit your workflow. Currently, there are two flags that opt out of breaking changes that were added in 0.13.0, namely allowing to restore behavior of having primary keys signed by default as well as making columns not null by default.
Fixes
- Fix custom column types not working anymore by @ndm2 in https://github.com/cakephp/phinx/pull/2156
- Restored migration template method return types by @Bilge in https://github.com/cakephp/phinx/pull/2160
- Fix foreign key constraint violations on implicit table drops by @ndm2 in https://github.com/cakephp/phinx/pull/2131
- Add feature flags to disable some 0.13.0 breaking changes by @MasterOdin in https://github.com/cakephp/phinx/pull/2159
- Changed breakpoint column to disallow nulls again by @Bilge in https://github.com/cakephp/phinx/pull/2162
Full Changelog: https://github.com/cakephp/phinx/compare/0.13.3...0.13.4
v0.13.3
Fixes
- Fix string to int return type by @dereuromark in https://github.com/cakephp/phinx/pull/2150
- Fix rolling back columns with indices for SQLite and SQL Server by @ndm2 in https://github.com/cakephp/phinx/pull/2128
- Add testcases for Util::getVersionFromFileName function by @MasterOdin in https://github.com/cakephp/phinx/pull/2153
- Fix reference to MysqlAdapter::FIRST constant in migrations doc by @niekatywny in https://github.com/cakephp/phinx/pull/2143
Full Changelog: https://github.com/cakephp/phinx/compare/0.13.2...0.13.3
v0.13.2
Fixes
- Maintain indexes / triggers after altering sqlite tables by @MasterOdin in https://github.com/cakephp/phinx/pull/2040
- Fix documentation seeder_base_class configuration by @N-Silbernagel in https://github.com/cakephp/phinx/pull/2124
- Fix deprecated ${} string interpolation by @rigrig in https://github.com/cakephp/phinx/pull/2133
- Fix enum by @dereuromark in https://github.com/cakephp/phinx/pull/2140
New Contributors
- @Arhell made their first contribution in https://github.com/cakephp/phinx/pull/2120
- @N-Silbernagel made their first contribution in https://github.com/cakephp/phinx/pull/2124
- @rigrig made their first contribution in https://github.com/cakephp/phinx/pull/2133
- @nono-lqdn made their first contribution in https://github.com/cakephp/phinx/pull/2137
Full Changelog: https://github.com/cakephp/phinx/compare/0.13.1...0.13.2
v0.13.1
Fixes
- Fix target being set to
0if omitted when running migrate by @nrob81 in #2115 - Fix deprecation warning on return value for
Config::offsetGetby @MasterOdin in #2117
Full Changelog: https://github.com/cakephp/phinx/compare/0.13.0...0.13.1
v0.13.0
Breaking Changes
- set column null by default unless identity by @MasterOdin in #1872. Previously columns were created as
NOT NULLby default, and to now get that behavior, you will need to explicitly pass'null' => falsein the column options. - remove remove
$directionargument topreFlightCheckandpostFlightCheck(useisMigratingUpproperty) by @MasterOdin in #1892 - make
utf8mb4default charset and collation for new mysql tables by @MasterOdin in #1875 (Setcharsetandcollationsetting in phinx.php toutf8mb3for prior behavior) - make default PKs for mysql unsigned by default by @MasterOdin in #1899. When defining foreign keys, you will need to now need to set
$signed => false. To restore prior behavior, pass$signed => truewhen defining the default PK. - Add type hints to codebase by @MasterOdin in #1995 (This does not affect the
up,down, orchangemethods forAbstractMigration. If you extend from phinx, you will need to add type hinting to your code) - remove deprecated hasSchemaTable function from
AdapterInterfaceby @MasterOdin in #1877 - remove deprecated
insert,dropTablemethods fromMigrationInterfaceby @MasterOdin in #1878 - Do not set code when recasting PDOException when connecting to DB by @MasterOdin in #2101
- Implement identity in
PostgresAdapterby @ajibarra in #2085 (identity columns for postgres 10+ will now be generated asINTEGER NOT NULL GENERATED ALWAYS AS IDENTITYinstead ofSERIAL NOT NULL)
Deprecations
- Deprecate the
default_migration_tableconfig setting, usemigration_tableinstead by @MasterOdin in #1961
New Features
- add createSchema and dropSchema methods on MigrationInterface by @MasterOdin in #1871
Improvements
- remove check on column type for setting collation / encoding by @Masterodin in #1881
- trigger deprecation notice when using default_database by @MasterOdin in #1890 (function had been marked as deprecated in 0.12.0)
- add support for smallserial alias for postgres by @MasterOdin in #1915 (note, using
smallintegeron an identity column will now use the typesmallserial) - allow setting migration_table per environment by @MasterOdin in #1961
- Add new
shouldExecutemethod toAbstractMigrationandAbstractSeedby @AdrienPoupa in #1939 - Add for geometry column type to
SqlServerAdapterby @tedce in #1969 - Add optional
$paramsargument to query/execute adapter methods to allow usage of prepared queries by @MasterOdin in #1962 - Allow specifying template style for create command by @MasterOdin in #2013 (note, the name of the base migration file has changed, argument has changed for
AbstractCommand::getMigrationTemplateFilename) - Improve associative array phpdocs by @dereuromark in #2034
- Pass environment to seed from manager by @martenb in #2102 (note, parameter change to
Manager::getSeedsmethod)
Full Changelog: https://github.com/cakephp/phinx/compare/0.12.13...0.13.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.