removed index first

This commit is contained in:
2025-01-22 19:14:41 +08:00
parent 8362b375d3
commit c587374e80
2 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
"""removed index
Revision ID: 0fae792dfdd0
Revises: 55b5303d6c3c
Create Date: 2025-01-22 11:14:14.543427
"""
from alembic import op
import sqlalchemy as sa
import sqlmodel.sql.sqltypes
# revision identifiers, used by Alembic.
revision = '0fae792dfdd0'
down_revision = '55b5303d6c3c'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('course', 'index')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('course', sa.Column('index', sa.INTEGER(), autoincrement=False, nullable=False))
# ### end Alembic commands ###