View source
<?php
function patterns_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {patterns} (\n pid int(10) unsigned NOT NULL default '0' PRIMARY KEY,\n name varchar(55) NOT NULL default '' UNIQUE KEY,\n status int(1) unsigned NOT NULL default '0',\n file varchar(255) NOT NULL default '0',\n updated varchar(10) NOT NULL default '0',\n enabled varchar(10) NOT NULL default '0',\n title varchar(255) NOT NULL default '0',\n description text NOT NULL default '',\n pattern text NOT NULL default ''\n ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
}
}