donglie7268 2014-11-07 16:35 采纳率: 100%
浏览 69
已采纳

Laravel应用MySQL脚本

In my previous job, if you needed to update some records on their application, you created a sql script in the 'patches' folder, and once on deployment, a program would run all the new scripts in the folder. It was much like migrations, but it was for updating records, rather than just updating table structure. Does Laravel offer something similar to that? I looked up everywhere for this concept, outside of Laravel and failed to find something similar.

If one wants to automate updating some records in the production database, how does one do it? I know that I can manually run the scripts manually but I want some automation on it.

Thanks

  • 写回答

1条回答 默认 最新

  • dtevhgk028372 2014-11-07 16:52
    关注

    Aren't Laravel Migrations what you are looking for?

    You can easily create scripts for manipulation with database records and you can run them from CL via Artisan.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点
  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改
  • ¥15 Windows 系统cmd后提示“加载用户设置时遇到错误”
  • ¥50 vue router 动态路由问题
  • ¥15 关于#.net#的问题:End Function
  • ¥15 无法import pycausal
  • ¥15 weditor无法连接模拟器Local server not started, start with?
  • ¥20 6-3 String类定义