Skip to content

Commit

Permalink
int to float
Browse files Browse the repository at this point in the history
  • Loading branch information
brettedw committed Feb 5, 2024
1 parent 36519bc commit 23f4177
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

def upgrade():
# ### start Alembic commands ###
op.add_column('morecast_forecast', sa.Column('grass_curing', sa.Integer(), nullable=True))
op.add_column('morecast_forecast', sa.Column('grass_curing', sa.Float(), nullable=True))
op.create_index(op.f('ix_morecast_forecast_grass_curing'), 'morecast_forecast', ['grass_curing'], unique=False)
# ### end Alembic commands ###

Expand Down
2 changes: 1 addition & 1 deletion api/app/db/models/morecast_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MorecastForecastRecord(Base):
precip = Column(Float, nullable=False, index=True)
wind_speed = Column(Float, nullable=False, index=True)
wind_direction = Column(Integer, nullable=True, index=True)
grass_curing = Column(Integer, nullable=True, index=True)
grass_curing = Column(Float, nullable=True, index=True)
create_timestamp = Column(TZTimeStamp, nullable=False, index=True)
create_user = Column(String, nullable=False)
update_timestamp = Column(TZTimeStamp, nullable=False, index=True)
Expand Down
2 changes: 1 addition & 1 deletion api/app/schemas/morecast_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class MoreCastForecastInput(BaseModel):
precip: float
wind_speed: float
wind_direction: int | None = None
grass_curing: int | None = None
grass_curing: float | None = None


class MoreCastForecastRequest(BaseModel):
Expand Down

0 comments on commit 23f4177

Please sign in to comment.