Update dependency robmorgan/phinx to ^0.16.0 #26
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.12.5
->^0.16.0
Release Notes
cakephp/phinx (robmorgan/phinx)
v0.16.0
Compare Source
Breaking Changes
When using
AbstratMigration
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.Previously
hasPrimaryKey
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
Docs
Misc
New Contributors
Full Changelog: cakephp/phinx@0.15.5...0.16.0
v0.15.5
Compare Source
What's Changed
New Contributors
Full Changelog: cakephp/phinx@0.15.4...0.15.5
v0.15.4
Compare Source
Fixes
Note: Columns created in Sqlite before 0.15.4 using the
PdoAdapter::PHINX_TYPE_BINARYUUID
type werebinary_blob
. In 0.15.4 they were changed to be typeuuid_blob
. If you rely on this constant, you will need to manually update the types of any columns usingPdoAdapter::PHINX_TYPE_BINARYUUID
to the new value.Note: binary(16) support for Sqlite inside CakePHP requires v5.0.3+.
New Contributors
Full Changelog: cakephp/phinx@0.15.3...0.15.4
v0.15.3
Compare Source
Fixes
Docs
New Contributors
Full Changelog: cakephp/phinx@0.15.2...0.15.3
v0.15.2
Compare Source
Fixes
Full Changelog: cakephp/phinx@0.15.1...0.15.2
v0.15.1
Compare Source
Fixes
PostgresAdapter::useIdentity
is always initialized by @othercorey in https://github.com/cakephp/phinx/pull/2223Full Changelog: cakephp/phinx@0.15.0...0.15.1
v0.15.0
Compare Source
Note: The
2.0.0
,2.0.1
, and2.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 using0.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 abool
type declaration: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:
Features
Docs
New Contributors
Full Changelog: cakephp/phinx@0.14.0...0.15.0
v0.14.0
Compare Source
Breaking Changes
Fixes
Docs
New Contributors
Full Changelog: cakephp/phinx@0.13.4...0.14.0
v0.13.4
Compare Source
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
Full Changelog: cakephp/phinx@0.13.3...0.13.4
v0.13.3
Compare Source
Fixes
Full Changelog: cakephp/phinx@0.13.2...0.13.3
v0.13.2
Compare Source
Fixes
New Contributors
Full Changelog: cakephp/phinx@0.13.1...0.13.2
v0.13.1
Compare Source
Fixes
0
if omitted when running migrate by @nrob81 in #2115Config::offsetGet
by @MasterOdin in #2117Full Changelog: cakephp/phinx@0.13.0...0.13.1
v0.13.0
Compare Source
Breaking Changes
NOT NULL
by default, and to now get that behavior, you will need to explicitly pass'null' => false
in the column options.$direction
argument topreFlightCheck
andpostFlightCheck
(useisMigratingUp
property) by @MasterOdin in #1892utf8mb4
default charset and collation for new mysql tables by @MasterOdin in #1875 (Setcharset
andcollation
setting in phinx.php toutf8mb3
for prior behavior)$signed => false
. To restore prior behavior, pass$signed => true
when defining the default PK.up
,down
, orchange
methods forAbstractMigration
. If you extend from phinx, you will need to add type hinting to your code)AdapterInterface
by @MasterOdin in #1877insert
,dropTable
methods fromMigrationInterface
by @MasterOdin in #1878PostgresAdapter
by @ajibarra in #2085 (identity columns for postgres 10+ will now be generated asINTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
instead ofSERIAL NOT NULL
)Deprecations
default_migration_table
config setting, usemigration_table
instead by @MasterOdin in #1961New Features
Improvements
smallinteger
on an identity column will now use the typesmallserial
)shouldExecute
method toAbstractMigration
andAbstractSeed
by @AdrienPoupa in #1939SqlServerAdapter
by @tedce in #1969$params
argument to query/execute adapter methods to allow usage of prepared queries by @MasterOdin in #1962AbstractCommand::getMigrationTemplateFilename
)Manager::getSeeds
method)Full Changelog: cakephp/phinx@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.
This PR has been generated by Mend Renovate. View repository job log here.