polygontech/data-migration-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

polygontech/data-migration-laravel

最新稳定版本:1.0.0

Composer 安装命令:

composer require polygontech/data-migration-laravel

包简介

Migration utility for creating or changing data in production

README 文档

README

Migration utility for creating or changing data in production

polygontech/data-migration-laravel is mainly used in laravel projects at polygontech to keep track of production data change request and also as initial seeders.

Installation

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require data-migration-laravel

then, publish the needed config:

php artisan vendor:publish --provider='Polygontech\DataMigration\ServiceProvider'

# or,

php artisan vendor:publish # and select 'Polygontech\DataMigration\ServiceProvider' when prompted

then, run migration to create the migration table:

php artisan migrate

Usage

Data migration is a migration like utility. Like migration, it provides some commands named make:data-migration and data-migrate. Currently, no rollback is supported.

First, create a data-migration:

php artisan make:data-migration MigrationName

A migration file will be created in database/data-migrations directory. database/data-migrations directory is set to default. It can be changed from config/data_migrations.php file.

Write the necessary data manipulation logics in the handle method of the newly created file. You can inject any dependencies in the __construct method of the migration class, they will be automatically resoluted.

Then, run created migrations:

php artisan data-migrate

Contributing

Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.

Copyright and License

The polygontech/nagad-disbursement library is copyright © Shafiqul Islam, Polygon Technology and licensed for use under the MIT License (MIT). Please see LICENSE for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-05