Skip to content

Instantly share code, notes, and snippets.

@gplanchat
Created July 19, 2015 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gplanchat/0e939ecc74bf7212c52c to your computer and use it in GitHub Desktop.
Save gplanchat/0e939ecc74bf7212c52c to your computer and use it in GitHub Desktop.
diff --git a/web/app/code/core/Mage/Eav/Model/Entity/Setup.php b/web/app/code/core/Mage/Eav/Model/Entity/Setup.php
index 6f3395e..0b56d75 100644
--- a/web/app/code/core/Mage/Eav/Model/Entity/Setup.php
+++ b/web/app/code/core/Mage/Eav/Model/Entity/Setup.php
@@ -1209,12 +1209,12 @@ class Mage_Eav_Model_Entity_Setup extends Mage_Core_Model_Resource_Setup
$isNoDefaultTypes = $this->_getValue($options, 'no-default-types', false);
$customTypes = $this->_getValue($options, 'types', array());
$tables = array();
+ $connection = $this->getConnection();
if (!$isNoCreateMainTable) {
/**
* Create table main eav table
*/
- $connection = $this->getConnection();
$mainTable = $connection
->newTable($this->getTable($baseTableName))
->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment