Download the PHP package viosys/vio-db-migration without Composer
On this page you can find all versions of the php package viosys/vio-db-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package vio-db-migration
VioDbMigration
Shopware plugin to apply project-specific DB-Updates
Setup
Git Version
- Checkout Plugin in
/custom/plugins/VioDbMigration - Change to Directory and run
composer installto install the dependencies - Install the Plugin with the Plugin Manager
Install with composer
- Change to your root Installation of shopware
- Run command
composer require viosys/vio-db-migrationand install and active plugin with Plugin Manager
Install and active the plugin
- to install the plugin via build process, we have added an installation script
- which you could run in your ant-build or the composer post-update script
-
Composer
- modify your repository version of
app/post-update.sh - add the following line before the migration console command
- modify your repository version of
- Ant
- when you want to run and add VioDbMigration in your ant-build definition send a message
Usage
- create empty directory
vio_sql/migrations - create Migration-Class with a consecutive number in the class name and in the file name
100-migration.php
Features
define depending showpare migration
To define a depending shopware migration you could overwride the getDependendSwMigrationStep method.
This will ensure, that the migration is executed directly after the defined migration,
use the di-container
Within a VioDbMigration you could use the di-container. In example to install a plugin.
use predefined migration-scripts
There is a list of predefined method to executed common migrations:
addThemeConfigElementSql-> insert or update a theme config valuesetConfigValue-> insert or update a shop/plugin config valueaddCoreSnippets-> replace a snippetinstallPlugin-> shorthand to install a pluginremovePlugin-> shorthand to clean delete a plugininsertPage-> create shop pageinsertPageGroup-> create a shop page group
All versions of vio-db-migration with dependencies
PHP Build Version
Package Version
The package viosys/vio-db-migration contains the following files
Loading the files please wait ...