Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
38a1acb50290a2eb76a34da51ae3f0edeb126200
1 parent
c781945b
fixed bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
db/dev.sql
db/dev.sql
View file @
38a1acb
...
...
@@ -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
...
...
Please
register
or
login
to post a comment