Forums / Contribution-Writing Guidelines / how to delete a sql patch of a mod?

how to delete a sql patch of a mod?

Locked

Started by giuly on 8 May 2009, 5:46 PM · Views: 5,268

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 May 2009, 5:46 PM
#1
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

how to delete a sql patch of a mod?

hello, many times I download mods that don't have sql uninstall, for example I have this sql install

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Linkconnector Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;

INSERT INTO configuration_group VALUES ('', 'Linkconnector Configuration', 'Set Linkconnector Options', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Linkconnector Configuration';

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
VALUES
('', 'Linkconnector Account', 'LINKCONNECTOR_ID', '00001', 'Enter your Linkconnector account number', @t4, 1, NOW(), NOW(), NULL, NULL),
('', 'Merchant ID', 'MERCHANT_ID', '1', 'Enter your Linkconnector Merchant ID account number', @t4, 1, NOW(), NOW(), NULL, NULL),
('', 'Campaign ID', 'CAMPAIGN_ID', '1', 'Enter your Linkconnector Campaign ID account number', @t4, 1, NOW(), NOW(), NULL, NULL);

how can I delete it?

And when I will have another mod with only sql install?
Can you give me a guide to how create a sql uninstall file?

Please
:frusty:

8 May 2009, 5:53 PM
#2
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: how to delete a sql patch of a mod?

I also would like solution to this, and also to how one determines whether an sql file has been installed.

I recently had to rebuild my shop and due to interruption have lost track of what I installed.

8 May 2009, 5:57 PM
#3
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: how to delete a sql patch of a mod?

dw08gm:

I also would like solution to this, and also to how one determines whether an sql file has been installed.

I recently had to rebuild my shop and due to interruption have lost track of what I installed.

I am agree on all
:yes:

24 May 2009, 4:26 PM
#4
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: how to delete a sql patch of a mod?

Bump

Anyone please.

24 May 2009, 4:36 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how to delete a sql patch of a mod?

More or less you have to go into phpMyAdmin and do the opposite of what the install sql did ...

If it inserts things into the database tables then you need to remove them ...

Be sure to backup your database before attempting the cleanup of something like this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 May 2009, 5:23 PM
#6
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: how to delete a sql patch of a mod?

Thanks Ajeh

I would need to know what the opposing commands are and how to use same.

eg
INSERT?
SET?
CREATE?

Can you point to a good online reference in this regard.

24 May 2009, 6:13 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: how to delete a sql patch of a mod?

You can find SQL Tutorials here. But this is not an area into which to go lightly. Manipulating databases is specialist stuff and while Zen Cart files can be easily replaced, data is gone forever unless you have a good backup.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 May 2009, 12:12 PM
#8
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,022
Plugin Contributions:
2

Re: how to delete a sql patch of a mod?

Thanks Kuroi

Having baulked at the 3000-odd page Mysql user manual, this is just what I was after - a gradual introduction.