model upgrade

This commit is contained in:
2024-03-20 19:04:15 +03:00
parent 53cbf96439
commit a8d286e428
5 changed files with 33 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View 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 ###

View File

@@ -18,6 +18,7 @@ class Oboruds(db.Model):
nazvanie=db.Column(db.String(500))
typeBalanse = db.Column(db.String(30))
raspologenie = db.Column(db.String(200))
numberved = db.Column(db.String(100))
aud_id = db.Column(db.Integer, db.ForeignKey(Auditory.id))