Changeset 76 for trunk/include
- Timestamp:
- Jan 30, 2009, 9:55:03 PM (16 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/oninstall.php
r34 r76 123 123 )$charset_collate;"; 124 124 dbDelta($views_queries); 125 125 126 $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ; 127 $views_queries ="CREATE TABLE $group_role ( 128 groupid smallint(5) unsigned NOT NULL default '0', 129 name varchar(50) NOT NULL default '' , 130 description text NOT NULL default '', 131 group_type varchar(10) NOT NULL default '' , 132 role varchar(20) NOT NULL default '' , 133 KEY groupid (groupid) 134 )$charset_collate;"; 135 dbDelta($views_queries); 136 126 137 // make templates 127 138 // include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/xpress_templates.php' ; -
trunk/include/onupdate.php
r34 r76 100 100 )$charset_collate;"; 101 101 dbDelta($queries); 102 } 103 104 if (! enhanced_table_check($mydirname,'group_role')){ 105 $xp_prefix = $mydirname; 106 if ($xp_prefix == 'wordpress'){ 107 $xp_prefix = 'wp'; 108 } 109 110 $charset_collate = ''; 111 if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') ) { 112 if ( ! empty($wpdb->charset) ) 113 $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; 114 if ( ! empty($wpdb->collate) ) 115 $charset_collate .= " COLLATE $wpdb->collate"; 116 } 117 118 $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ; 119 $views_queries ="CREATE TABLE $group_role ( 120 groupid smallint(5) unsigned NOT NULL default '0', 121 name varchar(50) NOT NULL default '' , 122 description text NOT NULL default '', 123 group_type varchar(10) NOT NULL default '' , 124 role varchar(20) NOT NULL default '' , 125 KEY groupid (groupid) 126 )$charset_collate;"; 127 dbDelta($views_queries); 102 128 } 103 129
Note: See TracChangeset
for help on using the changeset viewer.