osCmax v2.5 User Manual
Results 1 to 2 of 2

osc 2.2 to oscmax database conversion

This is a discussion on osc 2.2 to oscmax database conversion within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hello, I'm using MySQLDiff to convert an existing osc database to oscmax and have this sql error when running the ...

      
  1. #1
    Lurker
    Join Date
    May 2006
    Posts
    2
    Rep Power
    0


    Default osc 2.2 to oscmax database conversion

    Hello, I'm using MySQLDiff to convert an existing osc database to oscmax and have this sql error when running the script generated by mysqldiff.

    ALTER TABLE address_book ADD entry_company_tax_id varchar( 32 ) NULL DEFAULT NULL COMMENT '' COLLATE latin1_swedish_ci AFTER entry_company,
    DROP PRIMARY KEY ,
    ADD PRIMARY KEY ( address_book_id )

    MySQL said: Documentation
    #1062 - Duplicate entry '1' for key 1

    any way around this? I'm not an SQL expert.

    Thanks!

    Sean

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: osc 2.2 to oscmax database conversion

    Remove the DROP and ADD lines. Not needed as the Primary key is already (or should be) address_book_id.

Similar Threads

  1. how do i convert oscommerce database backups to oscmax?
    By chuan in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 10-07-2006, 06:43 PM
  2. Large conversion of OSCMAX Questions
    By spottedhaggis in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 02-22-2006, 08:08 AM
  3. Point of Sale program that will use Oscmax database?
    By Redeye_Joe in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 02-07-2006, 11:18 PM
  4. OSCMax v2 - Stuck on New Installation Database Import
    By Geno11x11 in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 12-04-2005, 09:27 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
  •