Author Topic: Error in SQL during install.  (Read 1060 times)

0 Members and 1 Guest are viewing this topic.

inetbiz

  • eCommerce Strategy Consultant
  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 135
  • Karma: 22
  • SKYNET; T3; Apple Inc. Coincidence?
    • View Profile
    • Hosting for Creloaded Cart
Re: Error in SQL during install.
« Reply #3 on: October 24, 2008, 12:05:59 AM »
The tracker link to the SQL bug in the install can be found here

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Error in SQL during install.
« Reply #2 on: October 21, 2008, 09:42:41 AM »
Thanks Ivar.  Added this to the tracker.

Ivar

  • EOS CONTRIBUTOR
  • Newbie
  • *
  • Offline Offline
  • Posts: 41
  • Karma: 4
    • View Profile
Error in SQL during install.
« Reply #1 on: October 20, 2008, 12:25:10 PM »
Hello

We are considering migrating from CRE, and I decided to try EOS cart. (eos_51alpha)

During install i got 2 errors when installing database.
I corrected 2 things in the sql files:
eostestdata.sql:
INSERT INTO zones_to_geo_zones VALUES (1, US, NY, 1, now(), now());
To
INSERT INTO zones_to_geo_zones VALUES (1, 'US', 'NY', 1, now(), now());

eos.sql:
DROP TABLE IF EXISTS zones_to_geo_zones;
CREATE TABLE IF NOT EXISTS zones_to_geo_zones (
  association_id int(11) NOT NULL auto_increment,
  zone_country_id varchar(3) NOT NULL default '0',
  zone_id varchar(16) default NULL,
  geo_zone_id int(11) default NULL,
  last_modified datetime NOT NULL default '0000-00-00 00:00:00',
  date_added datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY (association_id)
) TYPE=MyISAM ;

To

DROP TABLE IF EXISTS zones_to_geo_zones;
CREATE TABLE IF NOT EXISTS zones_to_geo_zones (
  association_id int(11) NOT NULL auto_increment,
  zone_country_id varchar(3) NOT NULL default '0',
  zone_id varchar(16) default NULL,
  geo_zone_id int(11) default NULL,
  last_modified datetime NOT NULL default '0000-00-00 00:00:00',
  date_added datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY (association_id)
) ENGINE=MyISAM ;


Best regards
Ivar
Norway