Stahovani pocasi, drobne upravy
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
"""add weather info to flight plan markers
|
||||
|
||||
Revision ID: 8a67af3909aa
|
||||
Revises: 790ba00fc021
|
||||
Create Date: 2024-05-16 06:19:13.112911
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '8a67af3909aa'
|
||||
down_revision = '790ba00fc021'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('flight_plan_marker', sa.Column('weather_info_id', sa.Integer(), nullable=True))
|
||||
op.create_foreign_key(None, 'flight_plan_marker', 'weather_info', ['weather_info_id'], ['id'])
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint(None, 'flight_plan_marker', type_='foreignkey')
|
||||
op.drop_column('flight_plan_marker', 'weather_info_id')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user