- Drops support for PHP <5.5 due to new minimum version of doctrine/migrations 1.3
- Added platform hint in
composer.json
to ensure PHP 5.4 compatibility.- PHP <5.5 support is dropped in doctrine/migrations 1.3
- This bundle is now based on the DoctrineMigrationsBundle and eZ Platform ready.
- All commands except the
ezpublish:migrations:generate
have been removed - use thedoctrine:migrations:*
commands instead - The following deprecated methods have been removed:
Kreait\EzPublish\MigrationsBundle\Migrations\AbstractMigration::getContainer()
- If you want to upgrade an existing project using version 1.x/2.x to the latest release, please follow the upgrade guide
- Added support for Symfony 3 and PHPUnit 5
- Muted
Migration xxx was executed but did not result in any SQL statements.
messages. - Removed hacky instructions to output status information, because this causes the migrations to fail.
- Updated .gitattributes to exclude all test related files
- Updated README
- Removed Mockery as a dependency
- Updated doctrine/migrations to Version 1.0 (stable)
- Bumped minimum version requirement for the Symfony Components to 2.4
- The previous minimum requirement of 2.3 was an error in the first place, because some used components were not available until 2.4
- Test library with
--prefer-stable --prefer-lowest
- Ensure PHP 7.0 and HHVM support in Travis CI tests
- When migrating from 1.x to 2.x, you have to remove all
$this->addSql("SELECT '...'");
statements, because those will result in anCannot execute queries while other unbuffered queries are active.
error.
- Easily create new contents with
$this->createContent()
, see documentation - Moved sources and tests to
src
andtest
directories
- Pin doctrine/migrations - the latest master did not work anymore. Please update your project's
composer.json
to use"doctrine/migrations": "1.0.0-alpha3"
.
The field $repository
in the AbstractMigration
had been change from protected
to private
, although it
should be accessible to use from generated migrations. Now it's back to protected
again :).
Thanks to @nadiri for bringing this up.
- The default migration user is now configurable by setting the
ez_user
parameter. If not set, it falls back toadmin
(User ID 14), which is the standard admin user in eZ Publish - It is now possible to change the migration user during a migration by using the following methods:
public function up(Schema $schema)
{
$this->changeMigrationUser('another_ez_username');
// ...
$this->restoreDefaultMigrationUser();
}
- We now don't add the complete eZ Publish kernel as a dev dependency, but only the API/SPI libraries
- Use retina ready badges for the README
- Fixed the VersionCommand unit test, which wasn't configured with the
--no-interaction
flag
- PHPUnit Tests with full code coverage
- As this is a bundle for eZ Publish 5, it now follows the eZ Publish Coding Standards
- Integrated Travis-CI and Scrutinizer-CI
- Added .gitattributes file for smaller release packages
- The class alias in generated migrations has been changed from
AbstractEzPublishMigration
toEzPublishMigration
- you don't need to change your already existing migrations.
- Shortcut for the eZ Publish API Repository, you can now directly access it through
$this->repository
- The default admin user is set as current by default
- Fixed typos
- Fixed version numbers in
composer.json
- Moved documentation to
Resources/doc/examples
- Added
ezsystems/ezpublish-kernel
as a dev requirement
- The method
$this->getContainer()
is deprecated, use$this->container
instead
Initial release.