mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
31 lines
681 B
Python
31 lines
681 B
Python
"""update to 1.8.2
|
|
|
|
Revision ID: 1.8.2
|
|
Revises: 1.8.1
|
|
Create Date: 2023-05-09 00:00:19.143526
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "1.8.2"
|
|
down_revision = "1.8.1"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table("roms") as batch_op:
|
|
batch_op.alter_column(
|
|
"r_slug", type_=sa.String(length=400), existing_type=sa.String(length=100)
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table("roms") as batch_op:
|
|
batch_op.alter_column(
|
|
"r_slug", type_=sa.String(length=100), existing_type=sa.String(length=400)
|
|
)
|