Results 1 to 2 of 2

Thread: Database Repair Issue

  1. #1
    kgeving is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Minnesota, USA
    Posts
    12

    Default Database Repair Issue

    When I run the Repair Database from Admin -> Repair, I receive the following error:

    /* Table : */
    /* Table : */
    /* Table : files */
    /*COLUMNS/*
    /*MISMATCH WITH DATABASE - id - ROW [Field] => 'id' [Type] => 'char(36)' [Null] => 'NO' [Key] => 'PRI' [Default] => '' [Extra] => '' */
    /* VARDEF - id - ROW[Field] => 'id' [Type] => 'varchar(36)' [Null] => 'NO' [Key] => 'PRI' [Default] => '' [Extra] => '' */
    alter table files modify column id varchar(36) NOT NULL
    /*MISMATCH WITH DATABASE - assigned_user_id - ROW [Field] => 'assigned_user_id' [Type] => 'char(36)' [Null] => 'YES' [Key] => 'MUL' [Default] => '' [Extra] => '' */
    /* VARDEF - assigned_user_id - ROW[Field] => 'assigned_user_id' [Type] => 'varchar(36)' [Null] => 'YES' [Key] => 'MUL' [Default] => '' [Extra] => '' */
    alter table files modify column assigned_user_id varchar(36) NULL
    /*INDEXES/*


    If I go into MySQL and manually change the data type on the two listed fields, I received the same error telling me the data types are reversed of what I just changed.

    This appears to have happened since I upgraded to 4.5.0 from 4.2.1 several months ago. I just never noticed it. Now, I'm having problems upgrading to 4.5.1, so I'm checking my current system first and this issue came up.

    Any help would be greatly appreciated!! Thank you!!


    Keith


    Sugar: 4.5.0b
    OS: Mac OS X 10.4.9
    PhP: 5.1
    MySQL: 5.0.27
    Server: Apache

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: Database Repair Issue

    Well, I know that the Repair Database pulls the indexes that are defined at the bottom of the var defs files in each module.
    From this snippet, it appears it's trying to alter table 'files' but not sure what that is.
    You might need to compare your vardefs files with NEW vardefs from an NON upgraded version.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Repair Database after 4.5.0f upgrade
    By Macadamian in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-04-13, 02:02 PM
  2. step 3 installation problem
    By voitek in forum Installation and Upgrade Help
    Replies: 10
    Last Post: 2007-02-14, 04:35 PM
  3. Repair Database does not
    By mmakowski in forum Help
    Replies: 1
    Last Post: 2007-01-03, 04:58 AM
  4. Replies: 0
    Last Post: 2006-07-17, 04:11 PM
  5. Repair database script
    By wp.rauchholz in forum Help
    Replies: 1
    Last Post: 2006-04-03, 05:08 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
  •