Results 1 to 3 of 3

Thread: Quick Repair and Rebuild - Mismatch with Database

  1. #1
    jeffbrumbaugh is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    20

    Default Quick Repair and Rebuild - Mismatch with Database

    We have upgraded from Pro version 5.0.0f to 5.1.0 and when we run a "Quick Repair and Rebuild" we receive the following:

    /* Table : report_cache */
    /*COLUMNS*/
    /*MISMATCH WITH DATABASE - contents - ROW [name] => 'contents' [type] => 'image' [len] => '2147483647' */
    /* VARDEF - contents - ROW[name] => 'contents' [type] => 'text' [comment] => 'contents of report object' [default] => '' [dbType] => 'text' [len] => '' */
    ALTER TABLE report_cache ALTER COLUMN contents text NULL ;

    /*MISMATCH WITH DATABASE - deleted - ROW [name] => 'deleted' [type] => 'varchar' [len] => '1' [default] => '0' */
    /* VARDEF - deleted - ROW[name] => 'deleted' [type] => 'varchar' [len] => '1' [required] => 'true' [dbType] => 'varchar' */
    ALTER TABLE report_cache DROP CONSTRAINT DF__report_ca__delet__309193BF ALTER TABLE report_cache ALTER COLUMN deleted varchar(1) NOT NULL ;

    /* INDEXES */
    /* Table : linked_documents */
    /*COLUMNS*/
    /* INDEXES */
    /*MISSING INDEX IN DATABASE - idx_parent_document -index ROW */
    create index idx_parent_document on linked_documents ( parent_type, parent_id, document_id );

    When I execute the script inside the Repair & Rebuild section, I receive an error saying SQL can't convert report_cache.contents to text.

    Any thoughts on how we can fix this?

  2. #2
    maloner's Avatar
    maloner is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Westmeath & Dublin
    Posts
    95

    Default Re: Quick Repair and Rebuild - Mismatch with Database

    Hi Jeff,

    I am getting the same error after installing a custom module. Did you fix this?

    Thanks,

    James
    John Malone
    Provident CRM Ltd
    SugarCRM Implementation Partner - Ireland
    http://www.providentcrm.ie/sugar-crm.html
    email: john@providentcrm.ie
    ph: 01-4403685

    Checkout our Monthly meetup: http://lampsoftware.meetup.com/9/
    SugarCRM Ireland Linked-In Group: http://www.linkedin.com/groups?gid=884327
    SugarCRM UK Linked-In Group: http://www.linkedin.com/groups?gid=1813385

  3. #3
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: Quick Repair and Rebuild - Mismatch with Database

    Quote Originally Posted by maloner View Post
    Hi Jeff,

    I am getting the same error after installing a custom module. Did you fix this?

    Thanks,

    James
    Thats becasue there is data in the table.
    backup table, truncate table, rerun script, reload script.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2011-02-15, 05:46 PM
  2. Errore dopo il Quick Repair and Rebuild
    By coniglio in forum Italiano
    Replies: 1
    Last Post: 2008-05-05, 02:48 PM
  3. Replies: 1
    Last Post: 2008-04-10, 01:19 PM
  4. Lost Portion of Quick Repair and Rebuild
    By johnnyo2 in forum Help
    Replies: 2
    Last Post: 2008-03-02, 06:14 PM
  5. Replies: 2
    Last Post: 2007-09-19, 06:47 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
  •