使用 Sequel Pro 导出数据库为 Laravel Migration

数据库导出为 Laravel Migration 文件:

https://github.com/cviebrock/sequel-pro-la...

导出文件在桌面。

via: https://laravel-news.com/2016/11/sequel-pr...

Bazinga!
Cooper
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 7
Cooper

@Summer 这个就符合我们之前的搞法,设计数据库的时候一般都是直接在数据库中设计字段的。
备注也是能导出的,蛮不错。再有历史项目重构也方便啦。

7年前 评论
Summer

sequal pro 也能有插件 :smile:

7年前 评论
Summer

我确是利用生成器,写命令,每次写的时候都感觉自己好高深。

php artisan make:scaffold Topics --schema="title:string:index,body:text,user_id:tinyInteger:unsigned:default(0),category_id:integer:unsigned:default(0),reply_count:integer:unsigned:default(0),view_count:integer:unsigned:default(0),vote_count:integer:unsigned:default(0),last_reply_user_id:integer:unsigned:default(0),order:integer:unsigned:default(0),is_excellent:tinyInteger:unsigned:default(0),is_wiki:tinyInteger:unsigned:default(0),is_blocked:tinyInteger:unsigned:default(0),body_original:text:nullable,excerpt:text:nullable"

7年前 评论
Lonexw

这个比较有用,感谢分享!

7年前 评论

为 sequal pro 点赞 :+1:

7年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!