title: Magento 1.7 - installer script does not run
body: <p>My installer script does not run.</p>
  
  <p>/app/etc/modules/Starmall_Salesorder.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
  &lt;modules&gt;
      &lt;Starmall_Salesorder&gt;
          &lt;active&gt;true&lt;/active&gt;
          &lt;version&gt;0.1.0&lt;/version&gt;
          &lt;codePool&gt;local&lt;/codePool&gt;
      &lt;/Starmall_Salesorder&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p></p>
  
  <p>Config.xml</p>
  
  <pre><code>&lt;modules&gt;
      &lt;Starmall_Salesorder&gt;
          &lt;version&gt;0.1.0&lt;/version&gt;
      &lt;/Starmall_Salesorder&gt;
  &lt;/modules&gt;
  
  ...
      &lt;resources&gt;
          &lt;starmall_salesorder_setup&gt;
              &lt;setup&gt;
                  &lt;module&gt;Starmall_Salesorder&lt;/module&gt;
              &lt;/setup&gt;
          &lt;/starmall_salesorder_setup&gt;
      &lt;/resources&gt;
  
  ...
  </code></pre>
  
  <p>/app/code/local/Starmall/Salesorder/sql/starmall_salesorder_setup/mysql4-install-0.1.0.php:</p>
  
  <pre><code>&lt;?php echo 'Running installer: '.get_class($this)."\n &lt;br /&gt; \n";  
  die("Exit for now");
  </code></pre>
  
  <p>When loading a page I don't see the test output.<br>
  There is no row in <code>core_resource</code> for this module.   </p>
  
  <p>No errors to see in /var/log  </p>
  
  <p>Why does this installer not run?</p>
  
  <p>I added debug line in <code>app/code/core/Mage/Core/Model/Resource/Setup.php</code><br>
  It doesn't get here in this function <code>_installResourceDb($newVersion)</code> </p>
  
  <pre><code>    protected function _installResourceDb($newVersion)
  {
      Mage::log("this line is not added to log file");
  
      $oldVersion = $this-&gt;_modifyResourceDb(self::TYPE_DB_INSTALL, '', $newVersion);
      $this-&gt;_modifyResourceDb(self::TYPE_DB_UPGRADE, $oldVersion, $newVersion);
      $this-&gt;_getResource()-&gt;setDbVersion($this-&gt;_resourceName, $newVersion);
  
      return $this;
  }
  </code></pre>