Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Plugin Contributions
    0

    Default 1.3.9 Install not picking up custom sql ?

    I have a "default" ZC install that I use for customer sites that includes additional modules. The SQL installs for these modules are included in the zc_install/sql/plugins directory.

    This works fine in the 138a version but having upgraded to 139 it no longer applies the plugin sql files. I can't find anything in the release notes regarding a change in this ?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: 1.3.9 Install not picking up custom sql ?

    It seems to work fine for me.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: 1.3.9 Install not picking up custom sql ?

    I've got a bit further with this, I don't think it's a problem with the upgrade after all, I think it's just a problem with the file format of one of my sql files.

    Strangely it's creating all the tables in the sql file so those commands are OK but all the insert statements between the table creation seem to be ignored.

    Looking back at my old code it looks like I hardcoded the sql into the zencart sql where it worked OK.

    Any thoughts on why the insert commands don't work would be appreciated. This is an extract from the file - both the tables are created but no data inserted. The file imports fine both as an sql patch and from the command line.

    Code:
    DROP TABLE IF EXISTS `admin_menu_headers`;
    CREATE TABLE `admin_menu_headers` (
      `id` int(11) NOT NULL,
      `header` varchar(16) NOT NULL default '',
      UNIQUE KEY `id` (`id`)
    ) TYPE=MyISAM;
    
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (0, 'Third Party Mods');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (1, 'Configuration');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (2, 'Catalog');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (3, 'Modules');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (4, 'Customers');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (5, 'Taxes');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (6, 'Localization');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (7, 'Reports');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (8, 'Tools');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (9, 'GV_Admin');
    INSERT INTO `admin_menu_headers` (`id`, `header`) VALUES (10, 'Extras');
    
    DROP TABLE IF EXISTS `admin_visible_headers`;
    CREATE TABLE `admin_visible_headers` (
      `header_id` int(11) NOT NULL default '0',
      `admin_id` int(11) NOT NULL default '0'
    ) TYPE=MyISAM;

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: 1.3.9 Install not picking up custom sql ?

    Probably a problem with the back-ticks.

    Isn't that from an addon anyway?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. zen auction 1.3 sql patch will not install
    By Tamber in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jan 2013, 08:26 PM
  2. SQL Install file does not exist
    By losse in forum Installing on a Windows Server
    Replies: 12
    Last Post: 7 Sep 2010, 01:13 PM
  3. mysql SQL Install file does not exist
    By Unicorn in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 16 Aug 2010, 09:37 PM
  4. Replies: 1
    Last Post: 3 Nov 2006, 10:16 AM
  5. SQL Install file does not exist
    By jdl in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 1 Jun 2006, 05:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg