despark/laravel-data-migration
Composer 安装命令:
composer require despark/laravel-data-migration
包简介
Helps you migrate data from foreign or local database table by table
README 文档
README
Not production ready!
General
This is a laravel library to help with Data migrations from old databases. Can also help with getting some remote database data and migrate it to a your database(s)
Installation
Add the service provider inside config/app.php
'providers' => [
...
Despark\Migrations\Providers\MigrationServiceProvider::class,
]
Publish the config file
php artisan vendor:publish --provider="Despark\Migrations\Providers\MigrationServiceProvider"
You must prepare the database connection to which the library will connect to get the data.
You can create the connection inside config/database.php;
Then set the database name that should be used by the library trough .env file setting
MIGRATION_DATABASE_CONNECTION=your_database_name key or by setting the database name directly in the published config
config/migrations.php.
Usage
To be done...
统计信息
- 总下载量: 514
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-29