magento为文件中的数据库更改添加新列

时间:2011-08-10 18:41:39

标签: magento

我想在magento的现有sales_flat_order表中添加新列。

列名已验证_此列中的varchar是32。 我是否需要在magento代码中的某些位置添加此列名称?

如果是,请告诉我。

我使用magento 1.5.1版本和mysql5

2 个答案:

答案 0 :(得分:1)

如果要向现有表添加新列,请创建自定义模块,并在其中设置脚本中添加所需的代码以添加列。你可以在这里找到一个好的开始:http://alanstorm.com/magento_setup_resources

答案 1 :(得分:0)

有点晚了,但是这篇博客会在salse_flat_order表中添加一个列:http://www.blessthemoon.com/despatch-date-module-part-4-setting-up-the-database/

希望对某人有用。