diff --git a/__pycache__/app.cpython-312.pyc b/__pycache__/app.cpython-312.pyc deleted file mode 100644 index 6845857..0000000 Binary files a/__pycache__/app.cpython-312.pyc and /dev/null differ diff --git a/__pycache__/models.cpython-311.pyc b/__pycache__/models.cpython-311.pyc deleted file mode 100644 index 266eac3..0000000 Binary files a/__pycache__/models.cpython-311.pyc and /dev/null differ diff --git a/__pycache__/models.cpython-312.pyc b/__pycache__/models.cpython-312.pyc deleted file mode 100644 index 1dc19b0..0000000 Binary files a/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/migrations/versions/__pycache__/be7c94c549e5_.cpython-312.pyc b/migrations/versions/__pycache__/be7c94c549e5_.cpython-312.pyc new file mode 100644 index 0000000..ea0aa62 Binary files /dev/null and b/migrations/versions/__pycache__/be7c94c549e5_.cpython-312.pyc differ diff --git a/migrations/versions/be7c94c549e5_.py b/migrations/versions/be7c94c549e5_.py new file mode 100644 index 0000000..52e3c4e --- /dev/null +++ b/migrations/versions/be7c94c549e5_.py @@ -0,0 +1,34 @@ +"""empty message + +Revision ID: be7c94c549e5 +Revises: 8e838956713f +Create Date: 2024-04-01 15:09:52.082987 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'be7c94c549e5' +down_revision = '8e838956713f' +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('balancenumber', sa.String(length=30), nullable=True)) + batch_op.drop_column('typeBalanse') + + # ### 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.add_column(sa.Column('typeBalanse', sa.VARCHAR(length=30), nullable=True)) + batch_op.drop_column('balancenumber') + + # ### end Alembic commands ### diff --git a/models.py b/models.py index c6a6620..24c2840 100644 --- a/models.py +++ b/models.py @@ -16,7 +16,7 @@ class Oboruds(db.Model): id = db.Column(db.Integer, primary_key=True, autoincrement=True) invNumber=db.Column(db.Integer) nazvanie=db.Column(db.String(500)) - typeBalanse = db.Column(db.String(30)) + balancenumber = 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)) diff --git a/templates/searchonaud.html b/templates/searchonaud.html index 5214d5d..7cef429 100644 --- a/templates/searchonaud.html +++ b/templates/searchonaud.html @@ -8,6 +8,12 @@