vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   MySQL querys (https://vborg.vbsupport.ru/showthread.php?t=42988)

DWZ 08-31-2002 11:30 AM

MySQL querys
 
I am currently running a hack version of vB 2.2.5. I have decided to upgrade to 2.2.7 and have spent the last few hours adding all my hacks to the 2.2.7 code.

Now, I found a few hacks that I didn't think I really needed and thought I should remove. Some of these were easy, but others had directly changed the database with some MySQL querys. Now, i wanted to know if anyone here can help me reverse these MySQL queries.

The first one is from the proxy hack. In it, I had to run the query:[sql]ALTER TABLE post ADD proxyip VARCHAR(255) not null AFTER ipaddress;[/sql]How can I reverse this? The next one is from the Random Quote On ForumHome hack, in which I had to run the query:[sql]CREATE TABLE quote (
id smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
userid smallint(4) NOT NULL,
username varchar(255) NOT NULL,
artist varchar(255) NOT NULL,
line1 varchar(255) NOT NULL,
line2 varchar(255) NOT NULL,
ok char(1) NOT NULL default '',
PRIMARY KEY (id)
);


ALTER TABLE user ADD quotes smallint(5) DEFAULT '0'[/sql]Again, how can I remove everything so it's like it was never there?

Thank you so much to anyone who can help!

Alan (DWZ)

Issvar 08-31-2002 12:07 PM

[sql]ALTER TABLE post DROP proxyip[/sql]
[sql]DROP TABLE quote[/sql]
[sql]ALTER TABLE user DROP quotes[/sql]

DWZ 09-01-2002 10:02 AM

w00t :D

thank you so much!


All times are GMT. The time now is 08:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01232 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete