add raspologenie in db schema
This commit is contained in:
32
migrations/versions/873defe09f22_.py
Normal file
32
migrations/versions/873defe09f22_.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
"""empty message
|
||||||
|
|
||||||
|
Revision ID: 873defe09f22
|
||||||
|
Revises: ec6bbcd361bd
|
||||||
|
Create Date: 2024-03-13 22:34:36.718676
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '873defe09f22'
|
||||||
|
down_revision = 'ec6bbcd361bd'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
with op.batch_alter_table('oboruds', schema=None) as batch_op:
|
||||||
|
batch_op.add_column(sa.Column('raspologenie', sa.String(length=200), nullable=True))
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
with op.batch_alter_table('oboruds', schema=None) as batch_op:
|
||||||
|
batch_op.drop_column('raspologenie')
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
BIN
migrations/versions/__pycache__/873defe09f22_.cpython-312.pyc
Normal file
BIN
migrations/versions/__pycache__/873defe09f22_.cpython-312.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user