add to model
This commit is contained in:
34
migrations/versions/6fc3d1adb061_.py
Normal file
34
migrations/versions/6fc3d1adb061_.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
"""empty message
|
||||||
|
|
||||||
|
Revision ID: 6fc3d1adb061
|
||||||
|
Revises: be7c94c549e5
|
||||||
|
Create Date: 2024-04-02 16:32:23.180273
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = '6fc3d1adb061'
|
||||||
|
down_revision = 'be7c94c549e5'
|
||||||
|
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('buhnumberpp', sa.String(length=100), nullable=True))
|
||||||
|
batch_op.add_column(sa.Column('kolichestvo', sa.Integer(), 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('kolichestvo')
|
||||||
|
batch_op.drop_column('buhnumberpp')
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
BIN
migrations/versions/__pycache__/6fc3d1adb061_.cpython-312.pyc
Normal file
BIN
migrations/versions/__pycache__/6fc3d1adb061_.cpython-312.pyc
Normal file
Binary file not shown.
@@ -15,11 +15,16 @@ class Auditory(db.Model):
|
|||||||
class Oboruds(db.Model):
|
class Oboruds(db.Model):
|
||||||
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
||||||
invNumber=db.Column(db.Integer)
|
invNumber=db.Column(db.Integer)
|
||||||
nazvanie=db.Column(db.String(500))
|
nazvanie=db.Column(db.String(500))
|
||||||
balancenumber = db.Column(db.String(30))
|
|
||||||
raspologenie = db.Column(db.String(200))
|
raspologenie = db.Column(db.String(200))
|
||||||
numberved = db.Column(db.String(100))
|
numberved = db.Column(db.String(100))
|
||||||
|
<<<<<<< HEAD
|
||||||
kolichestvo = db.Column(db.Integer)
|
kolichestvo = db.Column(db.Integer)
|
||||||
|
=======
|
||||||
|
buhnumberpp = db.Column(db.String(100))
|
||||||
|
kolichestvo = db.Column(db.Integer)
|
||||||
|
balancenumber = db.Column(db.String(30))
|
||||||
|
>>>>>>> 87c4ebe33e69ec19b443f976557a6f5fa2905476
|
||||||
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