PHP Database Migrations for Everyone
Full Changelog: https://github.com/cakephp/phinx/compare/0.13.1...0.13.2
0
if omitted when running migrate by @nrob81 in #2115Config::offsetGet
by @MasterOdin in #2117Full Changelog: https://github.com/cakephp/phinx/compare/0.13.0...0.13.1
NOT NULL
by default, and to now get that behavior, you will need to explicitly pass 'null' => false
in the column options.$direction
argument to preFlightCheck
and postFlightCheck
(use isMigratingUp
property) by @MasterOdin in #1892utf8mb4
default charset and collation for new mysql tables by @MasterOdin in #1875 (Set charset
and collation
setting in phinx.php to utf8mb3
for prior behavior)$signed => false
. To restore prior behavior, pass $signed => true
when defining the default PK.up
, down
, or change
methods for AbstractMigration
. If you extend from phinx, you will need to add type hinting to your code)AdapterInterface
by @MasterOdin in #1877insert
, dropTable
methods from MigrationInterface
by @MasterOdin in #1878PostgresAdapter
by @ajibarra in #2085 (identity columns for postgres 10+ will now be generated as INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
instead of SERIAL NOT NULL
)default_migration_table
config setting, use migration_table
instead by @MasterOdin in #1961smallinteger
on an identity column will now use the type smallserial
)shouldExecute
method to AbstractMigration
and AbstractSeed
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: https://github.com/cakephp/phinx/compare/0.12.13...0.13.0
Full Changelog: https://github.com/cakephp/phinx/compare/0.12.12...0.12.13
Full Changelog: https://github.com/cakephp/phinx/compare/0.12.11...0.12.12
Full Changelog: https://github.com/cakephp/phinx/compare/0.12.10...0.12.11
smallint(5)
)--no-info
hasPrimaryKey()
method in Table object. This mirrors the existing hasForeignKey()
function.int
to bool
and char
to uuid
false
to ignore it in addTimestamps()
/addTimestampsWithTimezone
methods. This is useful if not both fields are used.