How do I remove a relationship from a custom module after its been deployed?
Thanks!
How do I remove a relationship from a custom module after its been deployed?
Thanks!
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
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
Thanks u, i just do it and it works perfectly...![]()
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks