2024-07-29 11:43:52 +08:00

33 lines
800 B
Python

"""empty message
Revision ID: bad91e69ca34
Revises: d270947beff6
Create Date: 2023-04-13 16:38:37.237482
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bad91e69ca34'
down_revision = 'd270947beff6'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('doccomments', schema=None) as batch_op:
batch_op.add_column(sa.Column('star_num', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('doccomments', schema=None) as batch_op:
batch_op.drop_column('star_num')
# ### end Alembic commands ###