定制 dmitry-php/convert-migrations 二次开发

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

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

dmitry-php/convert-migrations

Composer 安装命令:

composer require dmitry-php/convert-migrations

包简介

Artisan command to convert your current SQL database schema into a Laravel 5 Migration file.

README 文档

README

This is an artisan command to convert your current SQL database schema into a Laravel 4 Migration file. It'll come really handy when you have started a Laravel project without using migrations, or if you're migrating an old app to Laravel.

Installation

  1. Add the package to your composer.json file and run composer update:
"require": {
    "adamkearsley/convert-migrations": "dev-master"
}
  1. Add 'Adamkearsley\ConvertMigrations\ConvertMigrationsServiceProvider' to your app/config/app.php file, inside the providers array.

Usage

Now it's as easy as running php artisan convert:migrations myDatabaseName. Wait a few seconds and, magically, you'll have a new migration in app/database/migrations.

Ignoring Tables

You can even ignore tables from the migration if you need to. Just use the ignore option and separate table names with a comma: php artisan convert:migrations --ignore="table1, table2".

Credits

Credits go to "bruceoutdoors" original class.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 34
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-06-19