The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to delete a sql entry
Well, the main problem is, it didn't creat tables, just modified original ones, here is the sql entry, can someone give me an sql entry to delete the entry?.
Heres the entry below. forum being the name of your forum db ALTER TABLE `forum`.`user` ADD `hp` INT(6) DEFAULT '0' NOT NULL, ADD `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, ADD `maxma` INT(6) DEFAULT '0' NOT NULL, ADD `pp` INT(6) DEFAULT '0' NOT NULL, ADD `maxpp` INT(6) DEFAULT '0' NOT NULL, ADD `ap` INT(6) DEFAULT '0' NOT NULL, ADD `element` INT(3) DEFAULT '0' NOT NULL; |
#2
|
|||
|
|||
[sql]
ALTER TABLE forum DROP hp; ALTER TABLE user DROP hp; [/sql] edit: ...repeat the pattern...because the query's one line it's half impossible to read |
#3
|
|||
|
|||
ahh here we go, can you do it now? I have no clue about ANYTHING in sql, so can you like.. redo it so I can just copy and paste what you write? THANKS in advance. The hack I trid to implement wasn't worth it.
[SQL]ALTER TABLE `forum`.`user` ADD `hp` INT(6) DEFAULT '0' NOT NULL, ADD `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, ADD `maxma` INT(6) DEFAULT '0' NOT NULL, ADD `pp` INT(6) DEFAULT '0' NOT NULL, ADD `maxpp` INT(6) DEFAULT '0' NOT NULL, ADD `ap` INT(6) DEFAULT '0' NOT NULL, ADD `element` INT(3) DEFAULT '0' NOT NULL;[/SQL] |
#4
|
||||
|
||||
[sql]ALTER TABLE forum.user DROP hp[/sql]
|
#5
|
|||
|
|||
well I took your guys advice, and tried writing an sql query with what you gave me, this is what I came up with, I didn't know if you shoudl put the ``` things in so I did, please let me know if this would work or not.
[SQL]ALTER TABLE `forum`.`user DROP `hp` INT(6) DEFAULT '0' NOT NULL, DROP `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, DROP `ma` INT(6) DEFAULT '0' NOT NULL, DROP `maxma` INT(6) DEFAULT '0' NOT NULL, DROP `pp` INT(6) DEFAULT '0' NOT NULL, DROP `maxpp` INT(6) DEFAULT '0' NOT NULL, DROP `ap` INT(6) DEFAULT '0' NOT NULL, DROP `element` INT(3) DEFAULT '0' NOT NULL; [/SQL] EDIT: this didn't work can someone give me a clear thing of what to do? |
#6
|
||||
|
||||
i told ya the exact query, nothing has to be added
repeat this queriy for every added field like maxhp.... |
#7
|
|||
|
|||
oh! lol thanks
|
#8
|
|||
|
|||
Thanks a bunch, worked fine, and got rid of all of em.
thanks again |
#9
|
||||
|
||||
you're welcome
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|