分享 / 0 / 7 / 创建于 8年前
数据库导出为 Laravel Migration 文件:
https://github.com/cviebrock/sequel-pro-la...
导出文件在桌面。
via: https://laravel-news.com/2016/11/sequel-pr...
sequal pro 也能有插件 :smile:
@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"
这个比较有用,感谢分享!
MySQL Workbench 导出 Migrations
https://laravel-news.com/2016/11/export-fr...
这个可以有:smirk:
为 sequal pro 点赞 :+1:
我要举报该,理由是:
sequal pro 也能有插件 :smile:
@Summer 这个就符合我们之前的搞法,设计数据库的时候一般都是直接在数据库中设计字段的。
备注也是能导出的,蛮不错。再有历史项目重构也方便啦。
我确是利用生成器,写命令,每次写的时候都感觉自己好高深。
这个比较有用,感谢分享!
MySQL Workbench 导出 Migrations
https://laravel-news.com/2016/11/export-fr...
这个可以有:smirk:
为 sequal pro 点赞 :+1: