質問

I have developed module with sql script upgrade and after that my phpunit tests got not success, these break in place of call new attribute for customer. I have investigated this case and concluded that new updates has applied after manual clean cache on the administrator page but don't after console command like zf clear mage-core-cache and etc. I think that runs anything else except cleaning cache...

Anybody know how to run check upgrade scripts like mysql4-upgrade-1.0.0-1.0.1.php and apply these programmatically ? I need that for my phpunit tests. thx

役に立ちましたか?

解決

From memory its Mage_Core_Model_Resource_Setup::applyAllUpdates(), but that relies on Mage_Core_Model_Config being initialized at least. It works through Mage::run() workflow.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top