![]() |
Invalid Default Value
Okay, with newer version we are not allowed to use DEFAULT '0' like we were and this is causing problems in some older, but still popular hacks. Shoutbox, and Member Album to name a couple.
If we are will to to make the corrections we need to know what changes to make. In Shoutbox there is this code: Code:
$query['new'][] = 'CREATE TABLE '.TABLE_PREFIX.'shoutbox_posts ( There doesn't seem to be any support for this, at least not enough to make it worth mentioning. So, can somebody tell me how to modify these queries so they work? Thanks a bunch. |
New version of what? vB, MySQL?
And what doesn't work, you get an error message? And please post questions about a hack in the thread about that hack. |
New versions of MySQL.
Yes there is an error, Invalid Default Value '0' This is not about the hack, this is about correcting queries. |
And what is the exact error you are getting?
|
Ahh just checked those queries now. There is 1 error in them:
[sql] `shoutid` BIGINT (255) UNSIGNED DEFAULT \'0\' AUTO_INCREMENT, [/sql] You can not have a default value for an auto increment field. Change that line to: [sql] `shoutid` BIGINT (255) UNSIGNED AUTO_INCREMENT, [/sql] |
Actually if you would have posted this in the Shoutbox thread, i think someone would have been able to help you much faster, since the answer to your question is already there: https://vborg.vbsupport.ru/showthrea...ent#post639730
|
Beleive it or not, I read the whole damned thing, and missed it.
I guess it was just too much. Thanks. |
All times are GMT. The time now is 09:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|