Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    689
    Plugin Contributions
    0

    Default 1170 BLOB/TEXT column - error

    I'm upgrading my DB from 1.2.7 to 1.3.0 and got this error. I'm not sure how to fix it.

    1170 BLOB/TEXT column 'products_options_values_name' used in key specification without a key length
    in:
    [ALTER TABLE zen_products_options_values ADD INDEX idx_products_options_values_name_zen (products_options_values_name);]

  2. #2
    Join Date
    Oct 2005
    Posts
    689
    Plugin Contributions
    0

    Default Re: 1170 BLOB/TEXT column - error

    I went back and clicked on recheck and it worked and finished the upgrade. I can't explain it, but it seems to be okay now.

  3. #3
    Join Date
    Jan 2004
    Posts
    58,262
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: 1170 BLOB/TEXT column - error

    You must have changed your products_options_name field from the default varchar(64) to blob type.

    To keep it as a blob and have the upgrader not croak, you'll need to edit line 63 of the mysql_upgrade_zencart_1302_to_135.sql file from this:
    Code:
    ALTER TABLE products_options_values ADD INDEX idx_products_options_values_name_zen (products_options_values_name);
    to this:
    Code:
    ALTER TABLE products_options_values ADD INDEX idx_products_options_values_name_zen (products_options_values_name(50));
    ... and then resume upgrading starting with the 1302-to-135 step
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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. MySql 5.0.27 and php 4.4.6 vs error Unknown column p.products_id in on clause
    By blueskymama in forum Upgrading from 1.2 to 1.3.x
    Replies: 1
    Last Post: 1 Apr 2007, 02:34 PM
  2. Products related pages' performance very slow
    By elegantfragrances in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Mar 2007, 04:54 PM
  3. 1101 BLOB/TEXT column can't have a default value
    By tkroh in forum Installing on a Windows Server
    Replies: 3
    Last Post: 27 Dec 2006, 10:28 PM
  4. I can’t any longer install any SQL-patches.
    By PeterBKK in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2006, 06:22 PM

Bookmarks

Posting Permissions

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