updated the course index part

This commit is contained in:
2025-01-22 18:22:04 +08:00
parent b84d9bda94
commit 7644ba35c1
68 changed files with 33316 additions and 27 deletions

View File

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