Results 1 to 3 of 3

Thread: I deleted the email_addresses table - can I simply rebuilt it

  1. #1
    PeterBowen is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Default I deleted the email_addresses table - can I simply rebuilt it

    I'm an idiot I know. I was clearing out a pile of test data and accidentally deleted the email_addresses table.

    I have not opened sugarcrm since deleting the table (if that is of any relevance?).

    If worst comes to worst I could reinstall the entire system but I would prefer not to do that as I don't want to lose the other stuff on the same database.

    Can I simply rebuild the table? If the answer is yes, where can I find the sql query for doing so or definitions for the fields and table?

    Thanks in advance.

    I'll get back to beating myself up

    EDIT:I found the table paramaters in email_addressesMetaData.php
    Last edited by PeterBowen; 2008-09-11 at 07:09 PM.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: I deleted the email_addresses table - can I simply rebuilt it

    Hi Pit

    You can go to Admin -> Repair -> Repair Database.
    It will recreate the missed tables and fields.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    PeterBowen is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Default Re: I deleted the email_addresses table - can I simply rebuilt it

    Just did it but it gave this error

    Executing repair query: Query Failed:CREATE TABLE email_addresses (id char(36) NOT NULL ,email_address varchar(255) NOT NULL ,email_address_caps varchar(255) NOT NULL ,invalid_email bool DEFAULT '0' NULL ,opt_out bool DEFAULT '0' NULL ,date_created datetime NULL ,date_modified datetime NULL ,deleted bool DEFAULT '0' NULL , PRIMARY KEY (id), KEY idx_ea_caps_opt_out_invalid (email_address_caps, opt_out, invalid_email), KEY idx_ea_opt_out_invalid (email_address, opt_out, invalid_email)) CHARACTER SET utf8 COLLATE utf8_general_ci::MySQL error 1050:

    Edit - I had phpMyAdmin open so maybe that was the problem. Anyway I just ran the query in phpMyAdmin and it looks like it worked.

    Thanks for the quick reply - I am planning on migrating over the weekend and really didn't need this in my life.



    Pete
    Last edited by PeterBowen; 2008-09-11 at 07:37 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Manually drop scheme (5.0 upgrade) ?
    By niallhannon in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-01-07, 05:41 PM
  2. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  3. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 PM
  4. php 5.0.4 + MySQL 5.0.9
    By sergiogu in forum Help
    Replies: 0
    Last Post: 2005-08-30, 04:38 PM
  5. Empty config.php at the end of install
    By aemadrid in forum Help
    Replies: 2
    Last Post: 2005-08-01, 06:29 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
  •