2
我正在使用Magento版本。 1.11.2.0(企業)。Magento安裝資源:安裝程序腳本未運行
我正在關注艾倫風暴的帖子here。
我模塊的config.xml:
<?xml version="1.0"?>
<config>
<modules>
<Invent_Instance>
<version>0.1</version>
</Invent_Instance>
</modules>
<global>
<models>
<instance>
<class>Invent_Instance_Model</class>
<resourceModel>instance_mysql4</resourceModel>
</instance>
<instance_mysql4>
<class>Invent_Instance_Model_Mysql4</class>
<entities>
<instance>
<table>instance</table>
</instance>
</entities>
</instance_mysql4>
</models>
<resources>
<instance_setup>
<setup>
<module>Invent_Instance</module>
<class>Invent_Instance_Model_Resource_Mysql4_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</instance_setup>
<instance_write>
<connection>
<use>core_write</use>
</connection>
</instance_write>
<instance_read>
<connection>
<use>core_read</use>
</connection>
</instance_read>
</resources>
...
類Invent_Instance_Model_Resource_Mysql4_Setup好像是叫OK,因爲我創造了它之前,它給出了一個錯誤說它不存在。
我的文件結構如下:
與我的安裝程序刪除所有緩存後被
echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n";
die("Exit for now");
的內容,我重裝我的管理模塊,並加載不給輸出或顯然沒有運行這個腳本。
有人可以告訴我我做錯了什麼嗎?我仔細檢查了模塊版本號(0.1),並找不出爲什麼它沒有運行。
我的模塊模型設置有什麼問題嗎?感謝您的幫助!
啊當然!不能相信我錯過了,非常感謝我即將嘗試,看到我只是手動更改表,並需要這個正確的,以允許升級的課程。會讓你知道一點。再次感謝。 – activeDev
謝謝! (朦朧的紅色) – activeDev
這已經發生在我身上好幾次了。有時候這是最明顯的答案! –