PHPackages                             blixem/third-party-migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. blixem/third-party-migrations

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

blixem/third-party-migrations
=============================

1.0.0(2y ago)099PHP

Since Feb 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/blixemdev/third-party-migrations-bundle)[ Packagist](https://packagist.org/packages/blixem/third-party-migrations)[ RSS](/packages/blixem-third-party-migrations/feed)WikiDiscussions 1.x Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

ThirdPartyMigrations
====================

[](#thirdpartymigrations)

ThirdPartyMigrations enables third party Composer packages to easily register their own migrations.

Using ordinary Doctrine migrations for third party packages is a bit of a hassle. This package makes it easier, by allowing you to define which package the migration belongs to, and indicate a schema version number for every migration. ThirdPartyMigrations makes sure that only the right migrations are executed. The current schema versions for every package is stored in the `package_schema_version` table. Executing migrations up or down automatically modifies this table.

You can define two types of migrations: installation migrations, containing the full schema for the latest version of the package, and update migrations, containing only the changes to the schema since the previous version.

To execute migrations in the correct order, it is recommended to give an installation migration a name like Version0000\_Install, and increase the number for update migrations names, e.g. Version0001\_.

Installation
------------

[](#installation)

```
$ composer require blixem/third-party-migrations

```

### Symfony

[](#symfony)

ThirdPartyMigrations provides a Symfony bundle for easy integration into the Symfony framework. When using Symfony Flex, the ThirdPartyMigrationsBundle gets added to your bundle configuration automatically. Otherwise, add the following line to your `bundles.php`

```
    Blixem\ThirdPartyMigrations\ThirdPartyMigrationsBundle::class => ['all' => true],
```

Usage
-----

[](#usage)

```
