Results 1 to 3 of 3

Thread: Module's table name different from module's name

  1. #1
    sgeorgiev is offline Member
    Join Date
    Jul 2008
    Posts
    6

    Default Module's table name different from module's name

    Hello,
    I want my database table name to be different from the name of my custom module.

    $dictionary['modulename'] = array(
    'table'=>'tablename',
    .
    .

    I did quick repair and rebuild, but I still see in sugarcrm.log:
    MySQL error 1146: Table 'sugarcrm.modulename' doesn't exist

    Should I change anything else besides $dictionary['modulename']['table'] ?

    Sugar version is 5.1GA

    Thanks

  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: Module's table name different from module's name

    Hi sgeorgiev

    Is there any reason for this?
    Some features take so long, does not improve properly the system and sometimes are non-upgrade safe.

    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
    sgeorgiev is offline Member
    Join Date
    Jul 2008
    Posts
    6

    Default Re: Module's table name different from module's name

    I wanted to have two modules work on the same table.
    Anyway I found another solution - to create a mysql view, named after the second module and based on a select statement over the table of the first module

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
  •