rifalto/migrations/versions/45281a94fd78_add_remarks_to...

33 lines
780 B
Python
Raw Normal View History

2023-06-14 09:20:36 -03:00
"""add remarks to purchases
Revision ID: 45281a94fd78
Revises:
Create Date: 2023-06-09 18:39:54.584636
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '45281a94fd78'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('purchases', schema=None) as batch_op:
batch_op.add_column(sa.Column('remarks', sa.Text(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('purchases', schema=None) as batch_op:
batch_op.drop_column('remarks')
# ### end Alembic commands ###