vBulletin Modifications

how do i reverse this query?

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-17-2006, 02:38 PM   #1
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default how do i reverse this query?

basically i want to run these queries, to do the oppisite of what they are doing now ....

i want to remove these entires from my database...
ALTER TABLE attachment add usedin varchar(30) not null;
ALTER TABLE attachment add itemid int not null;
ALTER TABLE pmtext add attach int not null;
ALTER TABLE attachment add index (usedin,itemid);

The only one giving me problems is this
ALTER TABLE attachment add index (usedin,itemid);

I dont know what/where usedin, itemid are located or if they are needed for the table to function.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-17-2006, 02:56 PM   #2
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

if it's for a mod then just look at the uninstall code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2006, 03:41 PM   #3
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

there is no uninstall code ... i had to manually run the queries.

i dont know what this means
(usedin,itemid)
I have deleted the first 3 tables, of which includes those beforementioned tables....
so why need 4 queries for 3 tables?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2006, 03:53 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

what version of vb do you run, You can look in your install file for the table setup.

Last edited by Nick R; 08-18-2006 at 05:17 AM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 02:59 AM   #5
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

3.5.4

which install file??
the install file (as i understand it) is a text file telling me what to do, and giving me those queries to run through vB or phpmyadmin.

am i right in assuming that ALTER TABLE attachment add index (usedin,itemid);
means, "to the table 'attachment' add the (rows?tables?) 'index' to BOTH usedin and itemid." ??




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 05:18 AM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

The install file is the vBulletin Install file, there is a file which contains the queries needed to make the vB tables.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 11:17 AM   #7
vB Newbie
Join Date: Dec 2005
-CP- is on a distinguished road

Default

You must first be a registered member to view any code.
should work...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 01:38 PM   #8
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Damn beat me to it :p
I suppose paintball was better anyway :p




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 02:07 PM   #9
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

ya im pretty sure when i deleted those two tables (usedin, itemid) it also removed the table index, as that was inside of usedin and itemid

rogers .... paintball was the better choice indeed.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-18-2006, 08:34 PM   #10
vB Newbie
Join Date: Dec 2005
-CP- is on a distinguished road

Default

Quote:
Originally Posted by rogersnm
Damn beat me to it :p
I suppose paintball was better anyway :p
lol, it is indeed a better choice :p

Quote:
Originally Posted by BigJohnny
ya im pretty sure when i deleted those two tables (usedin, itemid) it also removed the table index, as that was inside of usedin and itemid

rogers .... paintball was the better choice indeed.
yeh the index's would've been dropped when you dropped them 2 columns




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How To] Run a Query Ken Iovino vBulletin Modification Tutorials 9 07-30-2008 03:29 AM
Query skter4938 vBulletin Modification Requests 43 08-09-2006 05:41 AM
Whats the query Xanthate General vBulletin Support 7 05-06-2006 04:47 AM
trigger query after user replys Hakkie General vBulletin Support 6 09-15-2005 01:44 PM
Mysql / php code help w/ query and totals Hyper General vBulletin Support 6 07-12-2004 12:48 AM


All times are GMT -3. The time now is 07:00 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)