...
|
...
|
@@ -26,3 +26,8 @@ CREATE TABLE `tbl_activity_topic` ( |
|
|
`create_time` int(10) DEFAULT NULL,
|
|
|
PRIMARY KEY (`id`,`news_id`,`brand_id`)
|
|
|
) 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 |
...
|
...
|
|