Install script not running

by ctrl-z pls   Last Updated September 06, 2018 18:09 PM

I know there's a million of these questions with answers but I still can't solve this. It does create the line in the core_resource table, but my install script is supposed to die to show it's running, and it isn't.

Relevant code: (with changed Namespace/Module names) /var/www/html/app/code/local/Namespace/Module/etc.config.xml

<config>
<modules>
    <Namespace_Module>
        <version>0.0.1</version>
    </Namespace_Module>
</modules>
...
<global>
    ...
    <models>
        <module>
            <class>Namespace_Module_Model</class>
        </module>
    </models>
    <resources>
        <module_setup>
            <setup>
                <module>Namespace_Module</module>
                <class>Namespace_Module_Model_Resource_Setup</class>
            </setup>
            <connection>
                <use>core_setup</use>
            </connection>
        </module_setup>
    </resources>
</global>
</config>

In /var/www/html/app/code/local/Namespace/Module/Model/Resource/Setup.php:

class Namespace_Module_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {}

And then I made my installer script in /var/www/html/app/code/local/Namespace/Module/sql/module_setup/mysql14-install-0.0.1.php:

echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n";
die("Exit for now");

My steps for testing if it's working is this. I clear my cache from the Admin Cache Management page (although I have caching disabled anyways). Then I delete my module_setup entry from core_resource. Then I go back to the admin panel and refresh the page. When I do so, it recreates module_setup in the table, however it doesn't appear to execute my mysql14-install-0.0.1.php script because it doesn't die. Nothing appears in the logs (yes they're enabled). Please can someone see what I'm missing here? Is it a simple naming scheme or directory issue? I've been over the tutorials and answers so many times and still can't see what's wrong.



Related Questions


Magento 2 Add "VARCHAR" type field into custom table

Updated September 10, 2018 06:09 AM


Use of $installer v $this in install scripts

Updated March 21, 2016 08:03 AM


Insert data into core db table

Updated September 21, 2018 13:09 PM