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

数据库导出为 Laravel Migration 文件:

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

导出文件在桌面。

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

Bazinga!
Cooper
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
讨论数量: 7
Summer

sequal pro 也能有插件 :smile:

7年前 评论
Cooper

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

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年前 评论

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