Authored by whb

fixed bug

... ... @@ -25,4 +25,9 @@ CREATE TABLE `tbl_activity_topic` (
`brand_id` int(10) unsigned NOT NULL,
`create_time` int(10) DEFAULT NULL,
PRIMARY KEY (`id`,`news_id`,`brand_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
\ No newline at end of file
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
/**
* 更新表记录
*/
INSERT INTO tbl_activity_topic(title,place,start_time,end_time, create_time) SELECT title,place,start_time,end_time,UNIX_TIMESTAMP() FROM tbl_activity_plan;
UPDATE tbl_activity_plan a,tbl_activity_topic b SET a.parent_id = b.id WHERE a.start_time=b.start_time AND a.end_time = b.end_time
\ No newline at end of file
... ...