updated index

This commit is contained in:
2025-01-22 19:26:07 +08:00
parent c587374e80
commit ae3c2ad6ed
2 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
"""index can be null
Revision ID: 3d3e62ca614e
Revises: 0fae792dfdd0
Create Date: 2025-01-22 11:25:55.056526
"""
from alembic import op
import sqlalchemy as sa
import sqlmodel.sql.sqltypes
# revision identifiers, used by Alembic.
revision = '3d3e62ca614e'
down_revision = '0fae792dfdd0'
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=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('course', 'index')
# ### end Alembic commands ###