Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2012
    Posts
    65
    Plugin Contributions
    0

    Default SQL uninstall/reinstall

    When I reinstall a sql patch, I got some errors saying that was not able to install because that column is already exist.

    Is that because when I uninstalled it did not remove 100% and I need to manually delete it? If yes, where do I delete it?

    Is it because I need to remove the entire mod before I reinstall the SQL?

    Please let me know what do I need to do. (It is the FEC I needed to reinstall. I looked on that forum but had not found anything related to the sql issue I am having)

    Thank you

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL uninstall/reinstall

    If the column already exists, it can't be added.
    But if you WANT it to exist (and it sounds like you DO since you're trying to install the mod), then you can safely ignore the error/warning.

    If whatever method you're using to run those SQL statements actually carries on and attempts all the next SQL statements, then you should be fine. But if that one error causes it to abort, then you may need to manually run all the subsequent statements one by one to get them to take effect.
    .

    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
    Sep 2012
    Posts
    65
    Plugin Contributions
    0

    Default Re: SQL uninstall/reinstall

    I copied and pasted the sql content into the patch uploader through tools in admin. The mod does not work properly because of the issue.
    How do I manually run all subsequent statements?

    Thank you

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL uninstall/reinstall

    Each statement starts with a keyword, usually like INSERT or UPDATE or SELECT, and ends with a semi-colon.

    Generally speaking you can usually use copy-and-paste to run them one by one.
    .

    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.

  5. #5
    Join Date
    Sep 2012
    Posts
    65
    Plugin Contributions
    0

    Default Re: SQL uninstall/reinstall

    This is the error message:

    18 statements processed.
    ERROR: Cannot ADD column entry_telephone because it already exists.
    ERROR: Cannot ADD column shipping_telephone because it already exists.
    ERROR: Cannot ADD column dropdown because it already exists.
    ERROR: Cannot ADD column gift_message because it already exists.
    ERROR: Cannot ADD column checkbox because it already exists.
    ERROR: Cannot ADD column COWOA_account because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    ERROR: Cannot ADD column COWOA_order because it already exists.
    Note: 7 statements ignored. See "upgrade_exceptions" table for additional details.

    And the only place I see the (for example) entry_telephone is at the very beginning of the sql, which looks like this:

    ALTER TABLE address_book ADD entry_telephone varchar(50) NULL default NULL;
    ALTER TABLE orders ADD shipping_telephone varchar(50) NULL default NULL;
    ALTER TABLE orders ADD dropdown varchar(50) NULL default NULL;
    ALTER TABLE orders ADD gift_message varchar(100) NULL default NULL after dropdown;
    ALTER TABLE orders ADD checkbox integer(1) NULL default NULL after gift_message;
    ALTER TABLE customers ADD COWOA_account tinyint(1) NOT NULL default 0;
    ALTER TABLE orders ADD COWOA_order tinyint(1) NOT NULL default 0;

    And if I start adding them one by one, I get the same message:

    Failed: 1
    ERROR: Cannot ADD column entry_telephone because it already exists.
    Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

    What is my next step?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL uninstall/reinstall

    Those all tell me that those statements have already been run, and thus those statements don't need to be run again.
    .

    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.

  7. #7
    Join Date
    Sep 2012
    Posts
    65
    Plugin Contributions
    0

    Default Re: SQL uninstall/reinstall

    Nevermind Dr. Byte, I am most definitely a RETARD. I screwed up the settings in the configuration of the mod. I apologize that I took your time.
    Peter

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL uninstall/reinstall

    Ha! I did something similar this morning! No harm done. Glad you got it sorted out.
    .

    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. v139d USPS Shipping Module Won't Uninstall/Reinstall Properly for Upgrading Purposes
    By Fretty in forum Built-in Shipping and Payment Modules
    Replies: 29
    Last Post: 20 May 2015, 12:07 AM
  2. v150 Need an uninstall SQL query
    By coucho in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 12 Dec 2012, 07:16 AM
  3. Uninstall SQL Patch
    By CharInLasVegas in forum General Questions
    Replies: 12
    Last Post: 24 Aug 2011, 06:34 PM
  4. Uninstall SQL files
    By TurtleDove in forum General Questions
    Replies: 6
    Last Post: 8 Sep 2009, 11:30 AM
  5. Uninstall Then Reinstall failed!!!
    By frontier2002 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 16 Jul 2009, 04:15 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR