The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Don't forget to take table prefixes into account in your SHOW COLUMNS query.
|
#12
|
|||
|
|||
Quote:
$vidcolumns = $db->query_read("SHOW COLUMNS FROM " . TABLE_PREFIX . "video"); $videocolumns = array(); while ($vidcolumn = $db->fetch_array($vidcolumns)) { $videocolumns[] = $vidcolumn['Field']; } if (!in_array('timelength', $videocolumns)) { echo('<li>Altering Table <strong>' . TABLE_PREFIX . 'video</strong> ... '); $db->query_write("ALTER TABLE video ADD timelength int(10) unsigned NOT NULL"); } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|