The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How do i creat a table in mysql?
hey all first i would like to say sorry for this dumb question but im creating a feature for my mod and my wife is due to give birth tomorrow and for some reason my mind is just blank when it comes to mysql today but i have to finish this today before the baby is born!
basically what i want to do is creat a new table! here's what i have written!(or can remember) Code:
<installcode><![CDATA[ $db->hide_errors(); $vbulletin->db->query_write(" CREATE TABLE IF NOT EXISTS `". TABLE_PREFIX ."table1 `( `test` smallint(6) unsigned NOT NULL auto_increment, `test2` varchar(250) collate latin1_general_ci NOT NULL, `test3` varchar(250) collate latin1_general_ci NOT NULL, `test4` tinyint(1) NOT NULL default '0', `test5` tinyint(1) unsigned NOT NULL, `test6` int(10) unsigned NOT NULL, `test7` smallint(6) unsigned NOT NULL, PRIMARY KEY (`test`), KEY `threadid` (`threadid`) ) ENGINE=MyISAM ");]]></installcode> <uninstallcode><![CDATA[$vbulletin->db->query_write("DROP table " . TABLE_PREFIX . "table1");]]></uninstallcode> thanks for your help |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|