title: Magento: can't set the default value of custom order attribute using installation script
body: <p>I've added custom attribute to orders using <em>mysql4-install-1.0.0.php</em> in my module:</p>
  
  <pre><code>$installer = $this;
  $installer-&gt;startSetup();
  
  $installer-&gt;addAttribute('order', 'custom_status',  array(
      'type'          =&gt; 'varchar',
      'label'         =&gt; 'My Status',
      'note'          =&gt; '',
      'default'       =&gt; "my_default_value",
      'visible'       =&gt; false,
      'required'      =&gt; false,
      'user_defined'  =&gt; false,
      'searchable'    =&gt; false,
      'filterable'    =&gt; false,
      'comparable'    =&gt; false,
      'unique'        =&gt; false
  ));
  </code></pre>
  
  <p>It works - when I look at <strong>sales_flat_order</strong> table, I see new varchar field *custom_status* in the table. But the default value is NULL instead of <code>"my_default_value"</code> as expected there. Any ideas, why?</p>
  
  <p>PS. Installation script is really executed, I reset all to initial state each time.</p>
  
  <p>UPD. <em>config.xml</em></p>
  
  <pre><code>&lt;resources&gt;
          &lt;mymodule_setup&gt;
              &lt;setup&gt;
                  &lt;module&gt;Company_Mymodule&lt;/module&gt;
                  &lt;class&gt;Mage_Sales_Model_Mysql4_Setup&lt;/class&gt;
              &lt;/setup&gt;
              &lt;connection&gt;
                  &lt;use&gt;core_setup&lt;/use&gt;
              &lt;/connection&gt;
          &lt;/mymodule_setup&gt;
   ***
  </code></pre>