1

I have a module whose flat table I may need to add columns to and remove columns from. I know this can be done in setup, but I have to import data into the table nightly from a web service. The web service may occasionally change their column names.

First of all, does anyone know how to alter table structure in Magento without using raw SQL? Second, does anyone know the best way to do this?

I haven't yet mastered the EAV data pattern used in Magento but would someday like to learn. Any help appreciated.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

0

I had the same thought (or similar) a while ago.
ALTER TABLE in Magento setup script without using SQL

Ivan's answer was particularly good and I still refer to it often. It is essential reading.

Community
  • 1
  • 1
clockworkgeek
  • 37,650
  • 9
  • 89
  • 127