search full_name continue

This commit is contained in:
dderbentsov
2023-10-03 00:20:06 +03:00
parent a2dd4b36c2
commit 936d3b0af8
2 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
"""add full_name, medical_card_id
Revision ID: 459fcf60b75b
Revises: 3510de1e1ff1
Create Date: 2023-10-02 01:17:01.122039
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '459fcf60b75b'
down_revision = '3510de1e1ff1'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('persons', sa.Column('full_name', sa.String(length=310), nullable=True))
op.add_column('persons', sa.Column('medical_card_id', sa.UUID(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('persons', 'medical_card_id')
op.drop_column('persons', 'full_name')
# ### end Alembic commands ###