title: Magento upgrade 1.3.2.1 to 1.7.0.2
body: <p>So, I'm upgrading a Magento install from 1.3.2.1 to 1.7.0.2. But I get the following error when I try to convert the database to the new format.</p>
  
  <pre><code>a:5:{i:0;s:239:"Error in file: "/home/user/public_html/app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-1.4.0.0.7-1.4.0.0.8.php" - SQLSTATE[HY000]: General error: 1005 Can't create table 'user_new.customer_form_attribute' (errno: 150)";i:1;s:994:"#0 /home/user/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
  #1 /home/user/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup-&gt;_modifyResourceDb('upgrade', '1.4.0.0.7', '1.6.2.0.1')
  #2 /home/user/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup-&gt;_upgradeResourceDb('1.4.0.0.7', '1.6.2.0.1')
  #3 /home/user/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup-&gt;applyUpdates()
  #4 /home/user/public_html/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
  #5 /home/user/public_html/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App-&gt;_initModules()
  #6 /home/user/public_html/app/Mage.php(683): Mage_Core_Model_App-&gt;run(Array)
  #7 /home/user/public_html/index.php(87): Mage::run('', 'store')
  #8 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
  </code></pre>
  
  <p>Anybody who have fixed this problem? Google don't give me any answers only people who have the same problem.</p>