byng/pimcore-doctrine-migrations-library
Composer 安装命令:
composer require byng/pimcore-doctrine-migrations-library
包简介
A library to add integration for Doctrine migrations in Pimcore.
README 文档
README
In some Pimcore workflows you may find yourself repeatedly setting up the same content on several different environments (e.g. locally -> dev -> uat -> live). Doing this work manually is not only cumbersome, but it's also incredibly error prone. To alleviate this issue Byng decided to use Doctrine Migrations.
Using Doctrine Migrations you can automate database changes, and changes within Pimcore itself. For example; create pages, object, changing settings, etc.
Installation
Require the library via Composer (this library must be installed via Composer):
$ composer require byng/pimcore-doctrine-migrations-library
Then in your project's composer.json file add the following snippets:
{
...
"config": {
"project-root-path": "./"
},
...
"scripts": {
"post-install-cmd": [
"Byng\\Pimcore\\DoctrineMigrations\\Installer::install"
],
"post-update-cmd": [
"Byng\\Pimcore\\DoctrineMigrations\\Installer::install"
]
}
...
}
The project root path is necessary so that the installer can create a migrations folder.
Note: The installation script will overwrite the migrations configuration files created in the project root. Changes to these files will be overwritten on composer install and update. We recommend placing them in your ignore file(s).
Usage
Once installed, you can simply use the library like you normally would with Doctrine Migrations. See their documentation here.
License
MIT
统计信息
- 总下载量: 1.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-26