Changeset 534 for trunk/xpressme_integration_kit/include/onupdate.php
- Timestamp:
- Mar 10, 2010, 4:47:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/onupdate.php
r481 r534 254 254 } 255 255 256 $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ; 256 257 if (! enhanced_table_check($mydirname,'group_role')){ 257 $group_role = XOOPS_DB_PREFIX . '_' . $xp_prefix .'_group_role' ;258 258 $queries ="CREATE TABLE $group_role ( 259 259 groupid smallint(5) unsigned NOT NULL default '0', 260 blog_id bigint(20) unsigned NOT NULL default '0', 260 261 name varchar(50) NOT NULL default '' , 261 262 description text NOT NULL default '', … … 269 270 $db->queryF( $sql ) ; 270 271 $msgs[] = "$group_role table of XPressME was made."; 272 } else { 273 if (!is_found_table_column($group_role,'blog_id')){ 274 $queries ="ALTER TABLE $group_role ADD blog_id bigint(20) AFTER groupid"; 275 $db->queryF( $queries ) ; 276 $msgs[] = "$group_role ADD blog_id ."; 277 } 278 // The table is repaired. 279 $update_sql = "UPDATE $group_role SET blog_id = 1 WHERE(blog_id IS NULL OR blog_id < 1)"; 280 $db->queryF( $update_sql ) ; 271 281 } 272 282
Note: See TracChangeset
for help on using the changeset viewer.