function patterns_install in Patterns 5
Same name and namespace in other branches
- 6.2 patterns.install \patterns_install()
- 6 patterns.install \patterns_install()
- 7.2 patterns.install \patterns_install()
- 7 patterns.install \patterns_install()
Implementation of hook_install().
File
- ./
patterns.install, line 6
Code
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;
}
}