function og_panels_install in Organic groups 6
Same name and namespace in other branches
- 5.8 og_panels.install \og_panels_install()
- 5 og_panels.install \og_panels_install()
- 5.3 og_panels.install \og_panels_install()
- 5.7 og_panels.install \og_panels_install()
File
- modules/
og_panels/ og_panels.install, line 3
Code
function og_panels_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {og_panels} (\n did int NOT NULL,\n nid int NOT NULL,\n published int NOT NULL,\n page_title varchar(255) NOT NULL,\n path varchar(100) NOT NULL,\n default_page int NULL,\n show_blocks int NULL,\n weight int(4) NOT NULL DEFAULT 0,\n PRIMARY KEY (did)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {og_panels} (\n did integer NOT NULL,\n nid integer NOT NULL,\n published integer NOT NULL,\n page_title varchar(255) NOT NULL,\n path varchar(100) NOT NULL,\n default_page integer NULL,\n show_blocks integer NULL,\n weight integer(4) NOT NULL DEFAULT 0,\n PRIMARY KEY (did)\n );");
break;
}
}