承接 sayeed/custom-migrate 相关项目开发

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

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

sayeed/custom-migrate

最新稳定版本:1.0.3

Composer 安装命令:

composer require sayeed/custom-migrate

包简介

Custom migrate in laravel. You can individual file migrate here

README 文档

README

Laravel Custom DB Migrate allows fine grain control of migrations inside your Laravel or Lumen application. You can choose which migration files - or groups of files inside the directory - get migrated to the database.

Installation

You can install the package via composer:

composer require sayeed/custom-migrate

Laravel 5.5 and above

The package will automatically register itself, so you can start using it immediately.

Laravel 5.4 and older

In Laravel version 5.4 and older, you have to add the service provider in config/app.php file manually:

'providers' => [
    // ...
    Sayeed\CustomMigrate\CustomMigrateServiceProvider::class,
];

Lumen

After installing the package, you will have to register it in bootstrap/app.php file manually:

// Register Service Providers
    // ...
    $app->register(Sayeed\CustomMigrate\CustomMigrateServiceProvider::class);
];

Usage

After installing the package, you will now see a new php artisan migrate:custom command.

Migrate specific file

You can migrate a specific file inside your database/migrations folder using:

php artisan migrate:custom -f 2018_10_14_054732_create_tests_table

Alternatively, you can use the longform version:

php artisan migrate:custom --file 2018_10_14_054732_create_tests_table

Migrate specific directory

You can migrate a specific directory inside your database/migrations folder using:

php artisan migrate:custom -d migrations-subfolder

Alternatively, you can use the longform version:

php artisan migrate:custom --directory migrations-subfolder

Refreshing migrations

You can refresh migrations inside your project using:

php artisan migrate:custom -r

Alternatively, you can use the longform version:

php artisan migrate:custom --refresh

Credits

For any questions, you can reach out to the author of this package, Md. Hasan Sayeed.

Thank you for using it.

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-14