Prvni pokus o verejny pristup, sprava profilu

This commit is contained in:
Michal Kváček
2023-08-09 00:27:27 +02:00
parent ca500472e3
commit 57afde90c3
15 changed files with 814 additions and 124 deletions
@@ -0,0 +1,28 @@
"""add is_public to flight
Revision ID: 300b721e0818
Revises: 707eb800ddcd
Create Date: 2023-08-08 22:08:34.559165
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '300b721e0818'
down_revision = '707eb800ddcd'
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('flight', sa.Column('is_public', sa.Boolean(), server_default='0', nullable=False))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('flight', 'is_public')
# ### end Alembic commands ###