Skip to content

Commit

Permalink
Add Price.owner field
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Nov 15, 2023
1 parent 5169034 commit 7aeadd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def upgrade() -> None:
sa.Column('location_osm_id', sa.BigInteger(), nullable=True),
sa.Column('location_osm_type', sa.String(length=255), nullable=True),
sa.Column('date', sa.Date(), nullable=True),
sa.Column('owner', sa.String(), nullable=True),
sa.Column('created', sa.DateTime(timezone=True), server_default=sa.text('now()'), nullable=True),
sa.PrimaryKeyConstraint('id'),
)
Expand Down
1 change: 1 addition & 0 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Price(Base):
location_osm_type = Column(ChoiceType(PriceLocationOSMType))

date = Column(Date)
owner = Column(String)

created = Column(DateTime(timezone=True), server_default=func.now())

Expand Down

0 comments on commit 7aeadd1

Please sign in to comment.