33 lines
780 B
Python
33 lines
780 B
Python
"""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 ###
|