Remove a Plugin Manually  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Remove a Plugin Manually

Postby SBarnes » Fri Mar 09, 2018 2:31 pm

Hi Guys,

What SQL statements are needed to remove a plugin from the database under 7.1 I have a plugin that for some strange reason freezes Jiwa every time I try and delete it in plugin maintenance?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Remove a Plugin Manually  Topic is solved

Postby Scott.Pearce » Fri Mar 09, 2018 2:43 pm

I believe that all the SY_Plugin and associated tables have foreign keys defined with ON DELETE CASCADE, so a delete from SY_Plugin should delete all rows from associated tables for that plugin.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Remove a Plugin Manually

Postby Mike.Sheen » Fri Mar 09, 2018 2:51 pm

The following do not have delete cascade on FK constraints to SY_Plugin, and will require additional delete statements to remove them:

SY_PluginEmbeddedReference
SY_PluginSchedule
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Remove a Plugin Manually

Postby SBarnes » Fri Mar 09, 2018 3:03 pm

Hi Guys

Firstly thanks for the replies, I think the problem may possibly have be caused by that the plugin was still enabled or that I had been shelling out to visual studio as the debugger that might be the issue some how.

Fortunately this plugin has no embedded references and isn't scheduled, it was picking up the custom fields which was my may concern so hopefully Scott's original answer will do the trick.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 15 guests

cron