mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
30 lines
639 B
Python
30 lines
639 B
Python
"""update to 1.7.1
|
|
|
|
Revision ID: 1.7.1
|
|
Revises: 1.6.3
|
|
Create Date: 2023-04-15 02:28:24.023871
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "1.7.1"
|
|
down_revision = "1.6.3"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table("roms") as batch_op:
|
|
batch_op.add_column(
|
|
sa.Column("file_size_units", sa.String(length=10), nullable=True),
|
|
if_not_exists=True,
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table("roms") as batch_op:
|
|
batch_op.drop_column("file_size_units", if_exists=True)
|