mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-15 21:27:23 -04:00
glossary: primary_key needs value (#8298)
(cherry picked from commit 8076f9f590)
This commit is contained in:
committed by
Federico Caselli
parent
379e32fbda
commit
c8f7ec79d2
Vendored
+4
-4
@@ -1198,7 +1198,7 @@ Glossary
|
||||
class Employee(Base):
|
||||
__tablename__ = 'employee'
|
||||
|
||||
id = Column(Integer, primary_key)
|
||||
id = Column(Integer, primary_key=True)
|
||||
name = Column(String(30))
|
||||
|
||||
projects = relationship(
|
||||
@@ -1215,7 +1215,7 @@ Glossary
|
||||
class Project(Base):
|
||||
__tablename__ = 'project'
|
||||
|
||||
id = Column(Integer, primary_key)
|
||||
id = Column(Integer, primary_key=True)
|
||||
name = Column(String(30))
|
||||
|
||||
Above, the ``Employee.projects`` and back-referencing ``Project.employees``
|
||||
@@ -1311,14 +1311,14 @@ Glossary
|
||||
class Employee(Base):
|
||||
__tablename__ = 'employee'
|
||||
|
||||
id = Column(Integer, primary_key)
|
||||
id = Column(Integer, primary_key=True)
|
||||
name = Column(String(30))
|
||||
|
||||
|
||||
class Project(Base):
|
||||
__tablename__ = 'project'
|
||||
|
||||
id = Column(Integer, primary_key)
|
||||
id = Column(Integer, primary_key=True)
|
||||
name = Column(String(30))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user