定制 exolnet/laravel-db-upgrade 二次开发

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

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

exolnet/laravel-db-upgrade

最新稳定版本:v1.8.0

Composer 安装命令:

composer require exolnet/laravel-db-upgrade

包简介

Artisan command to migrate an existing production database structure to use Laravel migrations

README 文档

README

Latest Stable Version Software License Build Status Total Downloads

Artisan command to migrate an existing production database structure to use Laravel migrations

Installation

Require this package with composer:

composer require exolnet/laravel-db-upgrade

The package will automatically register its service provider.

Publish the config file to config/db-upgrade.php using:

php artisan vendor:publish --provider="Exolnet\DbUpgrade\DbUpgradeServiceProvider"

Review and update the default configuration according to your use case (see Usage section for more information).

Usage

  1. Create migrations to obtain your current database structure;
  2. Configure last_migration_for_upgrade to points to the last migration that represent your current database structure;
  3. Optionally, you can add migrations to update your old structure;
  4. Run the php artisan db:upgrade command.

The db:upgrade command will perform the following actions:

  1. Backup your data;
  2. Run your migrations up to the last_migration_for_upgrade migration;
  3. Restore your data;
  4. Run remaining migration.

Testing

To run the phpUnit tests, please use:

composer test

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details.

Security

If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.

Credits

License

Copyright © eXolnet. All rights reserved.

This code is licensed under the MIT license. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-22