fix(db): create_db_tables 목록에 Comment·VideoReaction 테이블 추가

신규 DB 셋업 시 두 테이블이 생성되지 않아 /video/all 등 댓글·좋아요
조회가 즉시 실패하던 누락을 보완한다.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVSeUT2pEmeHc6hG6gVXUS
This commit is contained in:
hbyang 2026-08-21 11:12:20 +09:00
parent 98c6515192
commit 87cb3eb3cb

View File

@ -80,7 +80,8 @@ async def create_db_tables():
from app.home.models import Image, Project, MarketingIntel, ImageTag # noqa: F401 from app.home.models import Image, Project, MarketingIntel, ImageTag # noqa: F401
from app.lyric.models import Lyric # noqa: F401 from app.lyric.models import Lyric # noqa: F401
from app.song.models import Song, SongTimestamp # noqa: F401 from app.song.models import Song, SongTimestamp # noqa: F401
from app.video.models import Video # noqa: F401 from app.video.models import Video, VideoReaction # noqa: F401
from app.comment.models import Comment # noqa: F401
from app.sns.models import SNSUploadTask # noqa: F401 from app.sns.models import SNSUploadTask # noqa: F401
from app.social.models import SocialUpload # noqa: F401 from app.social.models import SocialUpload # noqa: F401
from app.dashboard.models import Dashboard # noqa: F401 from app.dashboard.models import Dashboard # noqa: F401
@ -98,6 +99,8 @@ async def create_db_tables():
Song.__table__, Song.__table__,
SongTimestamp.__table__, SongTimestamp.__table__,
Video.__table__, Video.__table__,
VideoReaction.__table__,
Comment.__table__,
SNSUploadTask.__table__, SNSUploadTask.__table__,
SocialUpload.__table__, SocialUpload.__table__,
MarketingIntel.__table__, MarketingIntel.__table__,