Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] sql 수정 #151

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/models/video.sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export const updateCategorySql='update video set category_id=? where id=? and us
export const addCopyVideoSql='insert into video (version,title,link,image,created_at,readed_at,updated_at,category_id,user_id,youtube_created_at,description) select "original",title,link,image,?,?,?,?,?,youtube_created_at,description from video where id=? and version="original";'

export const addCopyRevisonVideoSql='insert into video (id,version,title,link,image,created_at,readed_at,updated_at,category_id,user_id,youtube_created_at,description) select ?,"revision",title,link,image,?,?,?,?,?,youtube_created_at,description from video where id=? and version="revision";'
export const copySubheadingSql='insert into subheading (name,start_time,end_time,content,video_id,version_id)select name,start_time,end_time,content,?,? from subheading where video_id = ?;'
export const copySubheadingSql='insert into subheading (name,start_time,end_time,content,video_id,version_id)select name,start_time,end_time,content,?,? from subheading where video_id = ? where version_id =? ;'

export const copySummarySql='insert into summary (content,video_id,version_id) select content,?,? from summary where video_id=?;';
export const copySummarySql='insert into summary (content,video_id,version_id) select content,?,? from summary where video_id=? and version_id=?;';

export const copyTagSql='insert into video_tag (video_id,tag_id,version_id) select ?,tag_id,? from video_tag where video_id=?;';
export const copyTagSql='insert into video_tag (video_id,tag_id,version_id) select ?,tag_id,? from video_tag where video_id=? and version_id=?;';
Loading