定制 marein/symfony-lock-doctrine-migrations-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marein/symfony-lock-doctrine-migrations-bundle

最新稳定版本:1.0.3

Composer 安装命令:

composer require marein/symfony-lock-doctrine-migrations-bundle

包简介

Perform concurrent doctrine migrations safely.

README 文档

README

CI

Table of contents

Overview

Perform concurrent doctrine migrations safely.

How it works?

It hooks into Symfony's event system and listens for the doctrine:migrations:migrate command to be executed. The command must be executed with the --conn option so that this bundle knows which connection to use. If the platform of the selected connection is supported, the operation is performed inside a distributed lock.

Supported platforms:

  • MySQL
  • PostgreSQL

Installation and requirements

Add the bundle to your project.

composer require marein/symfony-lock-doctrine-migrations-bundle

Add the bundle in the kernel. This can be different for your setup.

public function registerBundles()
{
    return [
        // ...
        new \Marein\LockDoctrineMigrationsBundle\MareinLockDoctrineMigrationsBundle(),
        // ...
    ];
}

Configuration

This is an example of all configurations in yaml format.

marein_lock_doctrine_migrations:
    # Define a prefix for the name of the lock.
    #
    # Type: string
    # Default: migrate__
    lock_name_prefix: custom__

Public api

Only the bundle configuration is part of the public api. Everything else can change and is not considered a breaking change. Please don't use classes or services directly.

统计信息

  • 总下载量: 107.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-18