开发者

add column to wordpress database

If i add a column to the wp_posts table in wordpress may i have problems in u开发者_如何学Cpgrade of wordpress??


Worpdress supports several mechanisms for plugins to store information in the database

  • Store site wide options
  • Store Post Meta
  • Custom tables

The article Creating Tables with Plugins mentions a dbDelta function that is used for updating tables. The discussion focuses on how the function can be used to upgrade versions of custom tables but it's probably used for the upgrade of wordpress itself.

Because of this, adding a column to wp_posts will probably not cause a problem for upgrades but may cause problems for the upgrade but probably would remove your column! I'd recommend using one of the options available.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜