Skip to content

Commit 6c8b340

Browse files
committed
reverting last change for primary_key
1 parent 15947f5 commit 6c8b340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Base = declarative_base()
257257

258258
class UserInfo(Base):
259259
__tablename__ = "users"
260-
id = Column(Integer, pk=True)
260+
id = Column(Integer, primary_key=True)
261261
full_name = Column(String)
262262
public_name = Column(String)
263263
hobbies = Column(String)
@@ -270,7 +270,7 @@ class UserInfo(Base):
270270

271271
class PublicUserInfo(Base):
272272
__tablename__ = 'public_users'
273-
id = Column(Integer, pk=True)
273+
id = Column(Integer, primary_key=True)
274274
public_name = Column(String)
275275
hobbies = Column(String)
276276

0 commit comments

Comments
 (0)