Results 1 to 2 of 2

Thread: pls advise on sugar database

  1. #1
    hoang is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    51

    Default pls advise on sugar database

    Hi,
    I'm trying to understand SugarCRM database to see if it's possible to migrate and intergrate our own Access DB to SugarCRM DB. As i'm fairly new to MySQL and PHP, there seems to be a lot of info to absorb here..so pls bear with my questions..
    1. The default engine of Sugar is MyISAM, hence no foreign key support. So how does Sugar insert data and maintain the relationship between the tables?
    2. If i am to create a new table, do i have to manually set up all the relationship in vardefs.php and MetaData.php? if not how do i go about doing that? Does Module Builder do that?
    Thank you
    cheers
    Edited: i'm looking at : 5.0 Beta 2 Release
    Last edited by hoang; 2007-11-21 at 05:29 AM.

  2. #2
    GameboyRMH is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    70

    Default Re: pls advise on sugar database

    Module Builder defines tables for new modules when you're creating the module. When you hit Deploy (or install it via the module loader) these tables are created (I'm guessing based on the vardefs.php in custom/modulebuilder/packages/<packagename>/modules/<modulename>). I don't know how you would link a manually created table to a module but you usually shouldn't need to do so.

    SugarCRM stores a 36-character id ("id" fields in Studio) for every record, and links to them using 36-character varchar ("text field" in Studio) fields with the format <linkedmodulename>_id. SugarCRM generates these ids on it's own, but I remember seeing something about a tool for generating ids.

    Anyone else know about generating ids?
    Server: Fedora
    Sugar 5 CE
    Apache 2.2.6
    MySQL 5.0.27

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 43
    Last Post: 2007-10-26, 06:14 PM
  2. Replies: 3
    Last Post: 2007-08-23, 10:42 AM
  3. Replies: 13
    Last Post: 2006-09-01, 09:29 PM
  4. Replies: 0
    Last Post: 2006-07-17, 04:11 PM
  5. Replies: 2
    Last Post: 2006-03-12, 02:56 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
  •