mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 03:40:16 +00:00
Altered the Cardinality of the foreign keys to be non-nullable
This commit is contained in:
parent
be1bce9261
commit
103b9a9da1
@@ -4,5 +4,5 @@ from ..database import Base
|
||||
|
||||
photo_entry_association = Table('photo_entry_association', Base.metadata,
|
||||
Column('id', Integer, primary_key=True, autoincrement=True),
|
||||
Column('fk_photo_id', Integer, ForeignKey('photos.id')),
|
||||
Column('fk_entry_id', Integer, ForeignKey('entries.id')))
|
||||
Column('fk_photo_id', Integer, ForeignKey('photos.id'),nullable=False),
|
||||
Column('fk_entry_id', Integer, ForeignKey('entries.id'),nullable=False))
|
||||
|
||||
Reference in New Issue
Block a user