removed index first
This commit is contained in:
29
backend/app/alembic/versions/0fae792dfdd0_removed_index.py
Normal file
29
backend/app/alembic/versions/0fae792dfdd0_removed_index.py
Normal 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 ###
|
Reference in New Issue
Block a user