Skip to content

Commit 03a883c

Browse files
committed
fix TopicSupplement table primary_key
1 parent 2ccad19 commit 03a883c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v2ex_scrapy/items.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class TopicSupplementItem(Base):
5757
__tablename__ = "topic_supplement"
5858

5959
topic_id: Mapped[int] = mapped_column(primary_key=True)
60-
content: Mapped[str] = mapped_column(nullable=False)
61-
create_at: Mapped[int] = mapped_column(nullable=False)
60+
content: Mapped[str] = mapped_column(primary_key=True)
61+
create_at: Mapped[int] = mapped_column(primary_key=True)
6262

6363

6464
@dataclass(kw_only=True)

0 commit comments

Comments
 (0)