Ticket #1999: 1999.001.diff
File 1999.001.diff, 1.2 KB (added by , 15 years ago) |
---|
-
bp-activity.php
27 27 28 28 if ( $wpdb->get_var( "SHOW COLUMNS FROM {$bp->activity->table_name} LIKE 'component_name'" ) ) 29 29 $wpdb->query( "ALTER TABLE {$bp->activity->table_name} CHANGE component_name component varchar(75) NOT NULL" ); 30 31 if ( $wpdb->get_var( "SHOW COLUMNS FROM {$bp->activity->table_name} LIKE 'mptt_left'" ) ) 32 $wpdb->query( "ALTER TABLE {$bp->activity->table_name} CHANGE mptt_left mptt_left int(11) NOT NULL DEFAULT '0'" ); 33 34 if ( $wpdb->get_var( "SHOW COLUMNS FROM {$bp->activity->table_name} LIKE 'mptt_right'" ) ) 35 $wpdb->query( "ALTER TABLE {$bp->activity->table_name} CHANGE mptt_right mptt_right int(11) NOT NULL DEFAULT '0'" ); 30 36 } 31 37 32 38 /** … … 44 50 secondary_item_id varchar(75) DEFAULT NULL, 45 51 date_recorded datetime NOT NULL, 46 52 hide_sitewide bool DEFAULT 0, 47 mptt_left int(11) NOT NULL ,48 mptt_right int(11) NOT NULL ,53 mptt_left int(11) NOT NULL DEFAULT '0', 54 mptt_right int(11) NOT NULL DEFAULT '0', 49 55 KEY date_recorded (date_recorded), 50 56 KEY user_id (user_id), 51 57 KEY item_id (item_id),