Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
how to undo a query Details »»
how to undo a query
Version: , by clamcrusher clamcrusher is offline
Developer Last Online: Mar 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-16-2003 Last Update: Never Installs: 0
 
No support by the author.

i ran some queries and i dont like the hack. how do i undo those queries?

i assume i just run another query?

these are the ones which need to be undone:

ALTER TABLE forum ADD sponsorname VARCHAR(50) not null AFTER cancontainthreads;

ALTER TABLE forum ADD sponsorimage VARCHAR(200) not null AFTER sponsorname;

ALTER TABLE forum ADD sponsorurl VARCHAR(255) not null AFTER sponsorimage;

ALTER TABLE forum ADD sponsorviews MEDIUMINT(10) not null default '0' AFTER sponsorurl;

ALTER TABLE forum ADD sponsorclicks MEDIUMINT(10) not null default '0' AFTER sponsorviews;

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-16-2003, 07:37 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[SQL]
ALTER TABLE 'forum' DROP 'sponsorname'
[/SQL]

[SQL]
ALTER TABLE 'forum' DROP 'sponsorimage'
[/SQL]

[SQL]
ALTER TABLE 'forum' DROP 'sponsorurl'
[/SQL]

[SQL]
ALTER TABLE 'forum' DROP 'sponsorviews'
[/SQL]

[SQL]
ALTER TABLE 'forum' DROP 'sponsorclicks'
[/SQL]
Reply With Quote
  #3  
Old 08-17-2003, 04:00 AM
clamcrusher clamcrusher is offline
 
Join Date: Jul 2003
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it does this for all of them

Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: ALTER TABLE 'forum' DROP 'sponsorname'
mysql error: You have an error in your SQL syntax near ''forum' DROP 'sponsorname'' at line 1

mysql error number: 1064

Date: Saturday 16th of August 2003 12:57:27 PM
Script: http://www.anabolic-alchemy.com/admin/query.php
Referer: http://209.67.24.185/admin/query.php?t=0&
Reply With Quote
  #4  
Old 08-17-2003, 04:01 AM
clamcrusher clamcrusher is offline
 
Join Date: Jul 2003
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw im using the hack from here which lets me do queries from admin cp. think that might be my problem?
Reply With Quote
  #5  
Old 08-17-2003, 04:06 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use the same queries, but don't put in the ' symbol and add a ; at the end.

eg. like this:

ALTER TABLE forum DROP sponsorname;
Reply With Quote
  #6  
Old 08-17-2003, 04:23 AM
clamcrusher clamcrusher is offline
 
Join Date: Jul 2003
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this mean it did it?

result:

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/anabolic-alchemy.com/httpdocs/admin/query.php on line 27
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/anabolic-alchemy.com/httpdocs/admin/query.php on line 29
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/anabolic-alchemy.com/httpdocs/admin/query.php on line 33

Query Result - ALTER TABLE forum DROP sponsorname;
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07345 seconds
  • Memory Usage 2,240KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete