Results 1 to 5 of 5

Thread: Remove relationship from a module

  1. #1
    edanb is offline Senior Member
    Join Date
    Dec 2008
    Posts
    25

    Default Remove relationship from a module

    How do I remove a relationship from a custom module after its been deployed?

    Thanks!

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Remove relationship from a module

    delete the relevant custom files
    they will be in

    custom/Extension/modules/<parent>/Ext/Layoutdefs
    custom/Extension/modules/<parent>/Ext/Vardefs
    custom/Extension/modules/<childt>/Ext/Vardefs

    Then do a repair

    in the database drop the table <parent>_<child>_c

    and in relationships table delete the realtionship

    That should do it
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Remove relationship from a module

    We will be adding the delete ability into Studio in the 5.5 release. For now you have to delete the files as listed here.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  4. #4
    rosemanu is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    22

    Default Re: Remove relationship from a module

    Thanks u, i just do it and it works perfectly...

  5. #5
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Remove relationship from a module

    If the relationship was created via studio you may also need to look at the following files

    custom/Extension/modules/relationships/language/<parent>.php
    custom/Extension/modules/relationships/layoutdefs/<parent>.php
    custom/Extension/modules/relationships/vardefs/<parent>.php
    custom/Extension/modules/relationships/vardefs/<child>.php
    custom/Extension/modules/relationships/<parent>_<child>MetaData.php
    custom/Extension/application/Ext/TableDictionary/custom<parent>_<child>.php
    custom/metadata/<parent>_<child>MetaData.php

    roll on 5.5
    Last edited by mikesolomon; 2009-03-30 at 03:33 PM.
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to remove a custom relationship
    By pbthenick in forum Help
    Replies: 11
    Last Post: 2012-04-01, 06:41 PM
  2. How to remove relationship through soap
    By Mubi in forum Developer Help
    Replies: 4
    Last Post: 2010-06-25, 10:14 AM
  3. soap: remove a single relationship
    By thierry.beeckmans in forum Developer Help
    Replies: 6
    Last Post: 2009-07-01, 08:42 PM
  4. Replies: 0
    Last Post: 2008-04-21, 08:01 AM

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
  •