model upgrade
This commit is contained in:
Binary file not shown.
Binary file not shown.
32
migrations/versions/8e838956713f_.py
Normal file
32
migrations/versions/8e838956713f_.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
"""empty message
|
||||||
|
|
||||||
|
Revision ID: 8e838956713f
|
||||||
|
Revises: 256c3a3e91a2
|
||||||
|
Create Date: 2024-03-20 19:03:51.112016
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '8e838956713f'
|
||||||
|
down_revision = '256c3a3e91a2'
|
||||||
|
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('numberved', sa.String(length=100), 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('numberved')
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
BIN
migrations/versions/__pycache__/8e838956713f_.cpython-312.pyc
Normal file
BIN
migrations/versions/__pycache__/8e838956713f_.cpython-312.pyc
Normal file
Binary file not shown.
@@ -18,6 +18,7 @@ class Oboruds(db.Model):
|
|||||||
nazvanie=db.Column(db.String(500))
|
nazvanie=db.Column(db.String(500))
|
||||||
typeBalanse = db.Column(db.String(30))
|
typeBalanse = db.Column(db.String(30))
|
||||||
raspologenie = db.Column(db.String(200))
|
raspologenie = db.Column(db.String(200))
|
||||||
|
numberved = db.Column(db.String(100))
|
||||||
aud_id = db.Column(db.Integer, db.ForeignKey(Auditory.id))
|
aud_id = db.Column(db.Integer, db.ForeignKey(Auditory.id))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user