Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
DB tables differ among ver.1 and 1.0.19870.4 ! 
 
nabuhonodozor
Member
 
Avatar
Total Posts:  38
Joined:  2008-03-27
 

Hi,
After troughly compare databases structure between Magento Ver.1 (release 1) and 1.0.19870.4 I can say ther differ!

Following by “--->” are differencess (first part for DB Ver. 1.0.19870.4, second, after “=====..” for DB Ver.1) :

FOR Table: core_config_data

CREATE TABLE IF NOT EXISTS `core_config_data` (
  `
config_idint(10unsigned NOT NULL auto_increment,
  `
scopeenum('default','websites','stores','config'NOT NULL default 'default',
  `
scope_idint(11NOT NULL default '0',
  `
pathvarchar(255NOT NULL default 'general',
  `
valuetext NOT NULL,
--->`
old_valuetext NOT NULL,
---> `
inherittinyint(4NOT NULL default '0',
  
PRIMARY KEY  (`config_id`),
  
UNIQUE KEY `config_scope` (`scope`,`scope_id`,`path`)


======================
CREATE TABLE IF NOT EXISTS `core_config_data` (
  `
config_idint(10unsigned NOT NULL auto_increment,
  `
scopeenum('default','websites','stores','config'NOT NULL default 'default',
  `
scope_idint(11NOT NULL default '0',
  `
pathvarchar(255NOT NULL default 'general',
  `
valuetext NOT NULL,
  
PRIMARY KEY  (`config_id`),
  
UNIQUE KEY `config_scope` (`scope`,`scope_id`,`path`)
)

FOR TABLE: eav_attribute

CREATE TABLE IF NOT EXISTS `eav_attribute` (
  `
attribute_idsmallint(5unsigned NOT NULL auto_increment,
  `
entity_type_idsmallint(5unsigned NOT NULL default '0',
  `
attribute_codevarchar(255NOT NULL default '',
  `
attribute_modelvarchar(255) default NULL,
  `
backend_modelvarchar(255) default NULL,
  `
backend_typeenum('static','datetime','decimal','int','text','varchar'NOT NULL default 'static',
  `
backend_tablevarchar(255) default NULL,
  `
frontend_modelvarchar(255) default NULL,
  `
frontend_inputvarchar(50) default NULL,
  `
frontend_labelvarchar(255) default NULL,
  `
frontend_classvarchar(255) default NULL,
  `
source_modelvarchar(255) default NULL,
  `
is_globaltinyint(1unsigned NOT NULL default '1',
  `
is_visibletinyint(1unsigned NOT NULL default '1',
  `
is_requiredtinyint(1unsigned NOT NULL default '0',
  `
is_user_definedtinyint(1unsigned NOT NULL default '0',
  `
default_valuetext,
  `
is_searchabletinyint(1unsigned NOT NULL default '0',
  `
is_filterabletinyint(1unsigned NOT NULL default '0',
  `
is_comparabletinyint(1unsigned NOT NULL default '0',
  `
is_visible_on_fronttinyint(1unsigned NOT NULL default '0',
  `
is_uniquetinyint(1unsigned NOT NULL default '0',
--->`
is_visible_in_advanced_searchtinyint(1unsigned NOT NULL default '0',
  `
is_configurabletinyint(1unsigned NOT NULL default '1',
  `
apply_tovarchar(255NOT NULL default '',
  `
positionint(11NOT NULL default '0',
  `
notevarchar(255NOT NULL default '',
  
PRIMARY KEY  (`attribute_id`),
  
UNIQUE KEY `entity_type_id` (`entity_type_id`,`attribute_code`)

===========

CREATE TABLE IF NOT EXISTS `eav_attribute` (
  `
attribute_idsmallint(5unsigned NOT NULL auto_increment,
  `
entity_type_idsmallint(5unsigned NOT NULL default '0',
  `
attribute_codevarchar(255NOT NULL default '',
  `
attribute_modelvarchar(255) default NULL,
  `
backend_modelvarchar(255) default NULL,
  `
backend_typeenum('static','datetime','decimal','int','text','varchar'NOT NULL default 'static',
  `
backend_tablevarchar(255) default NULL,
  `
frontend_modelvarchar(255) default NULL,
  `
frontend_inputvarchar(50) default NULL,
  `
frontend_labelvarchar(255) default NULL,
  `
frontend_classvarchar(255) default NULL,
  `
source_modelvarchar(255) default NULL,
  `
is_globaltinyint(1unsigned NOT NULL default '1',
  `
is_visibletinyint(1unsigned NOT NULL default '1',
  `
is_requiredtinyint(1unsigned NOT NULL default '0',
  `
is_user_definedtinyint(1unsigned NOT NULL default '0',
  `
default_valuetext,
  `
is_searchabletinyint(1unsigned NOT NULL default '0',
  `
is_filterabletinyint(1unsigned NOT NULL default '0',
  `
is_comparabletinyint(1unsigned NOT NULL default '0',
  `
is_visible_on_fronttinyint(1unsigned NOT NULL default '0',
  `
is_uniquetinyint(1unsigned NOT NULL default '0',
  `
is_configurabletinyint(1unsigned NOT NULL default '1',
  `
apply_tovarchar(255NOT NULL default '',
  `
positionint(11NOT NULL default '0',
  `
notevarchar(255NOT NULL default '',
--->`
is_visible_in_advanced_searchtinyint(1unsigned NOT NULL default '0',
  
PRIMARY KEY  (`attribute_id`),
  
UNIQUE KEY `entity_type_id` (`entity_type_id`,`attribute_code`)
)

FOR TABLE: product_alert_stock

KEY `FK_PRODUCT_ALERT_PRICE_CUSTOMER` (`customer_id`),
  
KEY `FK_PRODUCT_ALERT_PRICE_PRODUCT` (`product_id`),
  
KEY `FK_PRODUCT_ALERT_PRICE_WEBSITE` (`website_id`)
============
KEY `FK_PRODUCT_ALERT_STOCK_CUSTOMER` (`customer_id`),
  
KEY `FK_PRODUCT_ALERT_STOCK_PRODUCT` (`product_id`),
  
KEY `FK_PRODUCT_ALERT_STOCK_WEBSITE` (`website_id`)

FOR TABLE: tax_rate_data

CREATE TABLE IF NOT EXISTS `tax_rate_data` (
  `
tax_rate_data_idint(10unsigned NOT NULL auto_increment,
  `
tax_rate_idint(10unsigned NOT NULL default '0',
  `
rate_valuedecimal(12,4NOT NULL default '0.0000',
  `
rate_type_idtinyint(4NOT NULL default '0',
  
PRIMARY KEY  (`tax_rate_data_id`),
  
KEY `rate_id` (`tax_rate_id`),
  
KEY `rate_type_id` (`rate_type_id`)

===========
CREATE TABLE IF NOT EXISTS `tax_rate_data` (
  `
tax_rate_data_idint(10unsigned NOT NULL auto_increment,
  `
tax_rate_idint(10unsigned NOT NULL default '0',
  `
rate_valuedecimal(12,4NOT NULL default '0.0000',
  `
rate_type_idtinyint(4NOT NULL default '0',
  
PRIMARY KEY  (`tax_rate_data_id`),
--->
UNIQUE KEY `idx_rate_rate_type` (`tax_rate_id`,`rate_type_id`),
  
KEY `rate_id` (`tax_rate_id`),
  
KEY `rate_type_id` (`rate_type_id`)
)

NEXT PART IN SECOND POST

 
Magento Community Magento Community
Magento Community
Magento Community
 
nabuhonodozor
Member
 
Avatar
Total Posts:  38
Joined:  2008-03-27
 

FOR TABLE: tax_rule

CREATE TABLE IF NOT EXISTS `tax_rule` (
  `
tax_rule_idtinyint(4NOT NULL auto_increment,
  `
tax_customer_class_idsmallint(6NOT NULL default '0',
  `
tax_product_class_idsmallint(6NOT NULL default '0',
  `
tax_rate_type_idtinyint(4NOT NULL default '0',
  
PRIMARY KEY  (`tax_rule_id`),
  
KEY `tax_customer_class_id` (`tax_customer_class_id`,`tax_product_class_id`),
  
KEY `tax_customer_class_id_2` (`tax_customer_class_id`),
  
KEY `tax_product_class_id` (`tax_product_class_id`),
  
KEY `tax_rate_id` (`tax_rate_type_id`)
) ;
============
CREATE TABLE IF NOT EXISTS `tax_rule` (
  `
tax_rule_idtinyint(4NOT NULL auto_increment,
  `
tax_customer_class_idsmallint(6NOT NULL default '0',
  `
tax_product_class_idsmallint(6NOT NULL default '0',
  `
tax_rate_type_idtinyint(4NOT NULL default '0',
---> `
tax_shippingtinyint(1NOT NULL default '0',
  
PRIMARY KEY  (`tax_rule_id`),
  
KEY `tax_customer_class_id` (`tax_customer_class_id`,`tax_product_class_id`),
  
KEY `tax_customer_class_id_2` (`tax_customer_class_id`),
  
KEY `tax_product_class_id` (`tax_product_class_id`),
  
KEY `tax_rate_id` (`tax_rate_type_id`)
) ;

New Table in DB Ver1.0.19870.4 : usa_postcode

There are also small differencies like:

FOR Table: catalog_product_entity_tier_price

KEY `FK_catalog_product_entity_tier_price_group` (`customer_group_id`),
==================
KEY `FK_CATALOG_PRODUCT_ENTITY_TIER_PRICE_GROUP` (`customer_group_id`),

FOR Table: catalog_product_super_attribute_label

ENGINE=MyISAM DEFAULT CHARSET=utf8
==============
ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC

Or such small changes like:

KEY `IDX_BASE` (`entity_type_id`,.....
========
KEY `IDX_BASEUSING BTREE (`entity_type_id`,....

Can Somebody from Magento TEAM shear some light to this topic
- do Magento Team is aware of this (sorry to ask but I just want to clear this)
- are changes automatically apply during magento upgrade?
- are some of those changes apply during installation process and are connected to MySQL 4.xx <->MySQL 5.xx hosting enviroment

Best regards,
Piotr

 
Magento Community Magento Community
Magento Community
Magento Community
 
magenkate
Jr. Member
 
Total Posts:  4
Joined:  2008-07-06
 

are changes automatically apply during magento upgrade?
So hard to me.

 Signature 

love tiffany jewelry,gucci jewelry,I want to have Tiffany Ring.So I must work hard.

 
Magento Community Magento Community
Magento Community
Magento Community
 
There4you
Member
 
Total Posts:  67
Joined:  2008-06-24
Tasmania, Australia
 

HI,
I have asked the same thing as I noticed this also.

I would off thought since you asked 3 weeks ago someone would off told us or helped us on this issue. I must say it is dissapointing to see that there is no one to explaint his to us.. :(:( I mean we do not understand everythign that happens or how it works… It makes it that much harder to use the porduct when you do not know how it will go with updates and so on expecailly if you are building a store that you need to rely on.

Slav

 
Magento Community Magento Community
Magento Community
Magento Community
 
There4you
Member
 
Total Posts:  67
Joined:  2008-06-24
Tasmania, Australia
 

After one day of the upgrade I can see that most database stuff have updated themselves, except the flat rate tables, I assume we need t us them before the update happens .... Other issues I noticed that are different are the wording come are cpaital some are small letters not sure if that makes a difference.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50107 users|419 users currently online|102242 forum posts