36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
|
|
"""update license key length to 35 chars
|
||
|
|
|
||
|
|
Revision ID: abcd1234
|
||
|
|
Revises: fe6513ff0455
|
||
|
|
Create Date: 2025-11-10 18:00:00.000000
|
||
|
|
|
||
|
|
"""
|
||
|
|
from alembic import op
|
||
|
|
import sqlalchemy as sa
|
||
|
|
|
||
|
|
|
||
|
|
# revision identifiers, used by Alembic.
|
||
|
|
revision = 'abcd1234'
|
||
|
|
down_revision = 'fe6513ff0455'
|
||
|
|
branch_labels = None
|
||
|
|
depends_on = None
|
||
|
|
|
||
|
|
|
||
|
|
def upgrade():
|
||
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
|
with op.batch_alter_table('license', schema=None) as batch_op:
|
||
|
|
batch_op.alter_column('license_key',
|
||
|
|
existing_type=sa.String(length=32),
|
||
|
|
type_=sa.String(length=35),
|
||
|
|
existing_nullable=False)
|
||
|
|
# ### end Alembic commands ###
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade():
|
||
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
|
with op.batch_alter_table('license', schema=None) as batch_op:
|
||
|
|
batch_op.alter_column('license_key',
|
||
|
|
existing_type=sa.String(length=35),
|
||
|
|
type_=sa.String(length=32),
|
||
|
|
existing_nullable=False)
|
||
|
|
# ### end Alembic commands ###
|