Forums / Basic Configuration / SQL Script

SQL Script

Locked

Started by berserker on 25 Jul 2006, 11:06 PM · Views: 1,873

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Jul 2006, 11:06 PM
#1
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

SQL Script

Hello,

Once you have installed a SQL Script, can it be undone? I installed a mod that required me to install a SQL script but I now want to remove this. Do I have to remove the SQL script as well or can i leave it?

If i decided to delete it, how do i go about in doing that?

If i decided to leave it, will it affect the site?

25 Jul 2006, 11:16 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: SQL Script

A SQL file can do 50 bazillion things to your database ...

You want to clean up what ever it did or you may have extra database tables, fields, changes to fields etc. that could alter how the normal site runs ...

Perhaps if you said "what" add-on you ran a SQL file from it would help someone help you know what to do ...

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!

25 Jul 2006, 11:41 PM
#3
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: SQL Script

It's the News & Articles Management by Dreamscape

26 Jul 2006, 5:45 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: SQL Script

Berserker:

It's the News & Articles Management by Dreamscape

Run this SQL to remove the module's SQL components:```
delete from configuration_group where configuration_group_title = 'News & Articles Management';
delete from configuration where configuration_key in ('DISPLAY_NEWS_SUMMARY', 'DISPLAY_NEWS_SUMMARY_DAYS', 'DISPLAY_NEWS_SUMMARY_LENGTH', 'NEWS_COMMENTS_REQUIRE_CUSTOMER', 'ENTRY_NEWS_NAME_MIN_LENGTH', 'ENTRY_NEWS_COMMENTS_MIN_LENGTH', 'NEWS_COMMENTS_EMAIL_ADMIN_NOTICE', 'NEWS_RSS_FEED_NUMBER_OF_DAYS', 'NEWS_SCROLLER_NUMBER_OF_DAYS', 'NEWS_SCROLLER_HEIGHT', 'NEWS_SCROLLER_AMOUNT', 'NEWS_TICKER_NUMBER_OF_DAYS', 'NEWS_TICKER_HEIGHT', 'NEWS_TICKER_AMOUNT', 'NEWS_TICKER_DELAY');

DROP TABLE IF EXISTS news_articles;
DROP TABLE IF EXISTS news_articles_text;
DROP TABLE IF EXISTS news_authors;
DROP TABLE IF EXISTS news_comments;
DROP TABLE IF EXISTS news_comments_description;

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Jul 2006, 6:21 PM
#5
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: SQL Script

Dr Byte,

It doesn't seem to work. I get the error below:

delete from configuration_group where configuration_group_name = 'News & Articles Management';

1054 Unknown column 'configuration_group_name' in 'where clause'
in:
[DELETE FROM configuration_group where configuration_group_name = 'News & Articles Management';]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

27 Jul 2006, 1:20 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: SQL Script

oops -- corrected my post ... configuration_group_title ... not configuration_group_name

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.