admin管理员组文章数量:1487745
I'm trying to come up with a local development workflow for wordpress that actually works. I'm pretty new to this whole thing but I'm surprised this is so complicated. So far I've been using Git and WP Migrate DB, but that no longer will cut it after launching the site.
Under another question it's suggested that one should never make database changes on a staging environment. This seems absurd to me, since that would make any meaningful change impossible outside of isolated plugin or theme updates. Doesn't this defeat the whole purpose of having a local dev environment? What if I need to change the front page or the menu or anything really?
I could simply use WP Migrate DB or some similar tool if Wordpress wouldn't store everything but the kitchen sink in the same Posts table. Is there a good way to update some post-types while leaving other (user generated) post types intact? WP Migrate DB has an "ignore post types" feature but apparently that still overwrites everything on the other side, so it's not very useful.
I really don't want to end up with manual exports and pages long mysql queries in order to avoid directly editing the live site on a daily basis. Both seem to be terrible ideas.
本文标签: Updating Posts table in database without overwriting user generated content
版权声明:本文标题:Updating Posts table in database without overwriting user generated content 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1749257921a2925558.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论