dev-master
9999999-devAdd Liquibase-Support to Symfony2 projects.
MIT
The Requires
by Timo Haberkern
migrations liquibase
Add Liquibase-Support to Symfony2 projects.
Bundle that integrates the Liquibase Database migration tool in Symfony projects. The bundle comes with the latest LiquiBase-Version, different JDBC drivers and some Commandline tools, (*1)
First, grab the RtxLabsLiquibaseBundle. There are two different ways to do this:, (*3)
deps
fileAdd the following lines to your deps
file and then run php bin/vendors
install
:, (*4)
[RtxLabsLiquibaseBundle] git=https://github.com/RtxLabs/LiquibaseBundle.git target=bundles/RtxLabs/LiquibaseBundle
Run the following commands to bring in the needed libraries as submodules., (*5)
git submodule add https://github.com/RtxLabs/LiquibaseBundle.git vendor/bundles/RtxLabs/LiquibaseBundle
Add the following namespace entry to the registerNamespaces
call
in your autoloader:, (*6)
``` php <?php // app/autoload.php $loader->registerNamespaces(array( // ... 'RtxLabs' => DIR.'/../vendor/bundles', // ... ));, (*7)
### Step 3) Register the bundle To start using the bundle, register it in your Kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new RtxLabs\LiquibaseBundle\RtxLabsLiquibaseBundle(), ); // ... )
At the moment the Bundle comes with two commands, (*8)
php app/console liquibase:generate:changelog [--with-changeset] BundleName:ChangelogName php app/console liquibase:update:run BundleName
Add Liquibase-Support to Symfony2 projects.
MIT
migrations liquibase