The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
can someone please help me with this query.
i'm no sql guy and i'm getting syntax error: i need to add this: ALTER TABLE `".TABLE_PREFIX."post` ADD COLUMN `warn_flag` int(5) default 0 AFTER attach my prefix is this: i tried entering it like this: ALTER TABLE vb3_post ADD COLUMN `warn_flag` int(5) default 0 AFTER attach but i'm getting syntax error. please help. thanks in advanced. |
#2
|
|||
|
|||
![]()
Try this:
Code:
ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int(5) default 0 AFTER attach |
#3
|
|||
|
|||
![]() Quote:
i got this when i copied and pasted your code. Error SQL-query : ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int( 5 ) default0 AFTER attach MySQL said: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'default0 AFTER attach' at line 1 |
#4
|
|||
|
|||
![]()
There's a space missing between default and 0.
|
#5
|
|||
|
|||
![]()
i have no clue as to why it's reading that there's no spaces between default and 0 because it's not all all.
i copied and pasted exactly what you have above. my sql knowledge is noobish so i wouldn't know how to manually add it. can i add it like this: Code:
ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int(5) AFTER attach |
#6
|
|||
|
|||
![]()
i figured it out.
i got the old retarded version of MySQL 4.0.22 this worked: Code:
ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int(5) default '0' AFTER attach; |
#7
|
|||
|
|||
![]()
more enough i thank you greatly!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|