Fix map
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
"""prejmenovani date_time u WeatherInfo
|
||||
|
||||
Revision ID: db036549f318
|
||||
Revises: e3620deb41b6
|
||||
Create Date: 2025-09-16 09:26:04.082396
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import mysql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'db036549f318'
|
||||
down_revision = 'e3620deb41b6'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.create_unique_constraint(None, 'airport', ['openaip_id'])
|
||||
op.create_index(op.f('ix_flight_turn_point_order'), 'flight_turn_point', ['order'], unique=False)
|
||||
op.alter_column(
|
||||
"weather_info", "datetime", new_column_name="date_time", existing_type=sa.DateTime, nullable=False
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.alter_column(
|
||||
"weather_info", "date_time", new_column_name="datetime",
|
||||
existing_type=sa.DateTime, nullable=False
|
||||
)
|
||||
|
||||
op.drop_index(op.f('ix_flight_turn_point_order'), table_name='flight_turn_point')
|
||||
op.drop_constraint(None, 'airport', type_='unique')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user