承接 quantick/deploy-migrations 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

quantick/deploy-migrations

最新稳定版本:v1.0.13

Composer 安装命令:

composer require quantick/deploy-migrations

包简介

Deploy migration commands

README 文档

README

Scrutinizer Code Quality Build Status codecov Build Status

Installation

You can install the package via composer:

composer require quantick/deploy-migrations

The package will automatically register itself.

You can publish config and migration with:

php artisan vendor:publish --provider="Quantick\DeployMigration\DeployMigrationServiceProvider"

In config/deploy-migration.php сonfigure the path to the directory with migrations. By default it will be deploy/migrations

How to use

  1. Generate migration via command:
php artisan make:deploy-migration

It will create migration class in your project.

  1. Next configure getCommands method:
<?php


class Version20190211093348 extends \Quantick\DeployMigration\Lib\DeployMigration {

    public function getCommands(): array
    {
        return [
            \App\Console\Commands\TestCommandWithArguments::class => ['arg' => 'value', '--option' => true],
            \App\Console\Commands\TestCommandWithoutArguments::class => [],
            function (SomeService $service) {
                return $service->doTheWork();
            }
        ];
    }
}
  1. Run
php artisan deploy:migrate

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固