Error in file: "/var/www/deployment/releases/20180925070718/app/code/local/FactoryX/ShippedFrom/sql/shippedfrom_setup/upgrade-1.8.27-1.8.28.php" - Notice: Undefined variable: type  in /var/www/deployment/releases/20180925070718/app/code/local/FactoryX/ShippedFrom/sql/shippedfrom_setup/upgrade-1.8.27-1.8.28.php on line 36

#0 /var/www/deployment/releases/20180925070718/app/code/core/Mage/Core/Model/Resource/Setup.php(644): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /var/www/deployment/releases/20180925070718/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '1.8.27', '1.8.30')
#2 /var/www/deployment/releases/20180925070718/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('1.8.27', '1.8.30')
#3 /var/www/deployment/releases/20180925070718/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /var/www/deployment/releases/20180925070718/app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /var/www/deployment/releases/20180925070718/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()
#6 /var/www/deployment/releases/20180925070718/app/Mage.php(691): Mage_Core_Model_App->run(Array)
#7 /var/www/deployment/releases/20180925070718/index.php(83): Mage::run('default', 'store')
#8 {main}