Results 1 to 4 of 4

Thread: Mysql table and column errors during upgrade

  1. #1
    tparson is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Nova Scotia
    Posts
    67

    Default Mysql table and column errors during upgrade

    Fedora Core 5
    PHP 4.4.6
    MySql 4.1.1

    Sugar Version where problem lies 4.51 OS

    MySql buffs, sharpen your pencils.
    I have just pulled a customers OS from 3.0.1 up to 4.5.1 with much pain, but sucessfully. Data seems to be solid. So now I'm trying to move them to Pro. Using patch SugarOS-to-SugarPro-Upgrade-4.5.1b

    I upload the file after getting the all clear on precheck and then the following errors are shown:



    table exists::CREATE TABLE `session_active` ( `id` char(36) NOT NULL default '', `session_id` varchar(100) default NULL, `last_request_time` datetime default NULL, `session_type` varchar(100) default NULL, `is_violation` tinyint(1) default '0', `num_active_sessions` int(11) default '0', `date_entered` datetime default NULL, `date_modified` datetime default NULL, `deleted` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `idx_session_id` (`session_id`) )

    table exists::CREATE TABLE `session_history` ( `id` char(36) NOT NULL default '', `session_id` varchar(100) default NULL, `date_entered` datetime default NULL, `date_modified` datetime default NULL, `last_request_time` datetime default NULL, `session_type` varchar(100) default NULL, `is_violation` tinyint(1) default '0', `num_active_sessions` int(11) default '0', `deleted` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) )

    Duplicate column name 'portal_password'::ALTER TABLE `contacts` ADD COLUMN `portal_password` varchar(32) NULL AFTER `portal_active`


    Any ideas? I've gone through the database, and yes they do already exist. Should they not? If not, how on earth did they get there and how do I make them go away safely?

    Thanks!

    Tracy

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Mysql table and column errors during upgrade

    Hi
    I think these tables should not be there. I don't see these ones in Sugar Open Source 4.5.1.

    Regarding the duplicate column error, have you installed any custom module? If yes, it might have added the same column.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    tparson is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Nova Scotia
    Posts
    67

    Default Re: Mysql table and column errors during upgrade

    Thank you for your reply.

    I was also wondering if there is a module added that might cause this. I guess I'll back up, remove the column/tables and see what happens.

    Thank you.

    Tracy

  4. #4
    tparson is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Nova Scotia
    Posts
    67

    Default Re: Mysql table and column errors during upgrade

    A final note on this subject: Removing the tables and extra column worked perfectly, no harm done. Upgrade went smoothly.

    Thank you for your ideas.

    Tracy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Upgrade Wizard link returns a blank page
    By rmichaut in forum Help
    Replies: 9
    Last Post: 2006-10-30, 07:30 PM
  2. Replies: 0
    Last Post: 2006-07-17, 04:11 PM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 PM
  4. Upgrade 2.0-2.5 - Table errors?
    By pommiejon in forum Help
    Replies: 1
    Last Post: 2005-01-22, 03:43 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
  •