Results 1 to 6 of 6

Thread: ops, i just dropped the accounts table!

  1. #1
    jnas is offline Member
    Join Date
    May 2007
    Posts
    7

    Default ops, i just dropped the accounts table!



    What’s the best option for me to get back up and running? I, not bothered about the data as it was just the demo accounts...thankfully

    Ive created a few custom fields and dont want to do a fresh install!

    Thanks

    j

  2. #2
    tluolamo is offline Member
    Join Date
    Oct 2006
    Posts
    5

    Default Re: ops, i just dropped the accounts table!

    Well the custom fields you added would be in the accounts_cstm table so if you dropped the default accounts table only, just reload that from backup or another install of sugar and you should be good to go.

  3. #3
    jnas is offline Member
    Join Date
    May 2007
    Posts
    7

    Default Re: ops, i just dropped the accounts table!

    thanks .. but i never performed a backup

    you also suggested to do an install, do you mean just run through the install.php script from scratch? Will this not overwrite the existing data?

  4. #4
    tluolamo is offline Member
    Join Date
    Oct 2006
    Posts
    5

    Default Re: ops, i just dropped the accounts table!

    Basically you need to get hold of the create table for the accounts table so you can recreate it. If you don't have a single backup then best option is for you to do a fresh install on another computer and use the MySQL command "SHOW CREATE TABLE accounts" to get the create table script for accounts. Once you have that you can just execute it on the instance you are missing the accounts in and everything should be back to normal.

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: ops, i just dropped the accounts table!

    I pulled this script from one of my OS installs (4.5.1c). See if this helps:

    Code:
    CREATE TABLE `accounts` (                                       
                `id` char(36) NOT NULL,                                       
                `date_entered` datetime NOT NULL,                             
                `date_modified` datetime NOT NULL,                            
                `modified_user_id` char(36) NOT NULL,                         
                `assigned_user_id` char(36) default NULL,                     
                `created_by` char(36) default NULL,                           
                `name` varchar(150) default NULL,                             
                `parent_id` char(36) default NULL,                            
                `account_type` varchar(25) default NULL,                      
                `industry` varchar(25) default NULL,                          
                `annual_revenue` varchar(25) default NULL,                    
                `phone_fax` varchar(25) default NULL,                         
                `billing_address_street` varchar(150) default NULL,           
                `billing_address_city` varchar(100) default NULL,             
                `billing_address_state` varchar(100) default NULL,            
                `billing_address_postalcode` varchar(20) default NULL,        
                `billing_address_country` varchar(100) default NULL,          
                `description` text,                                           
                `rating` varchar(25) default NULL,                            
                `phone_office` varchar(25) default NULL,                      
                `phone_alternate` varchar(25) default NULL,                   
                `email1` varchar(100) default NULL,                           
                `email2` varchar(100) default NULL,                           
                `website` varchar(255) default NULL,                          
                `ownership` varchar(100) default NULL,                        
                `employees` varchar(10) default NULL,                         
                `sic_code` varchar(10) default NULL,                          
                `ticker_symbol` varchar(10) default NULL,                     
                `shipping_address_street` varchar(150) default NULL,          
                `shipping_address_city` varchar(100) default NULL,            
                `shipping_address_state` varchar(100) default NULL,           
                `shipping_address_postalcode` varchar(20) default NULL,       
                `shipping_address_country` varchar(100) default NULL,         
                `deleted` tinyint(1) NOT NULL default '0',                    
                `campaign_id` char(36) default NULL,                          
                PRIMARY KEY  (`id`),                                          
                KEY `idx_accnt_id_del` (`id`,`deleted`),                      
                KEY `idx_accnt_assigned_del` (`deleted`,`assigned_user_id`),  
                KEY `idx_accnt_parent_id` (`parent_id`)                       
              ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    jnas is offline Member
    Join Date
    May 2007
    Posts
    7

    Default Re: ops, i just dropped the accounts table!

    thanks ;-)

    am back on track!

    J

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  2. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  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
  •