The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Confused about this query
Hello again
So, I'm finally starting to learn how to add custom usergroup permissions, and have been somewhat successful (I think), however, in the install code for my modification, I first tried: Code:
$db->hide_errors(); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD usmlsaperms int(10) unsigned NOT NULL default '0', ADD staffappminpostreq int(10) NOT NULL default '100', ADD staffappminrepreq int(10) NOT NULL default '100', ADD staffappminregreq int(10) NOT NULL default '100' "); $db->show_errors(); Code:
$db->hide_errors(); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD usmlsaperms int(10) unsigned NOT NULL default '0' "); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD staffappminpostreq int(10) NOT NULL default '100' "); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD staffappminrepreq int(10) NOT NULL default '100' "); $db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD staffappminregreq int(10) NOT NULL default '100' "); $db->show_errors(); So, my question is, why didn't the first code work? |
#2
|
||||
|
||||
maybe this
Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD (usmlsaperms int(10) unsigned NOT NULL default '0', staffappminpostreq int(10) NOT NULL default '100', staffappminrepreq int(10) NOT NULL default '100', staffappminregreq int(10) NOT NULL default '100') "); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|