mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 15:54:45 +01:00
r_slug size changed to 400
This commit is contained in:
1 parent
abfbbcea65
commit
c495a3b479
2 files changed
+31
-1
No files matched your search
@@ -0,0 +1,30 @@
|
||||
"""update to 1.8.2
|
||||
|
||||
Revision ID: 1.8.2
|
||||
Revises: 1.8.1
|
||||
Create Date: 2023-05-09 00:00:19.143526
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '1.8.2'
|
||||
down_revision = '1.8.1'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
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))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
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))
|
||||
# ### end Alembic commands ###
|
||||
@@ -24,7 +24,7 @@ class Rom(BaseModel):
|
||||
file_size_units = Column(String(length=10), default="")
|
||||
|
||||
r_name = Column(String(length=350), default="")
|
||||
r_slug = Column(String(length=100), default="")
|
||||
r_slug = Column(String(length=400), default="")
|
||||
|
||||
summary = Column(Text, default="")
|
||||
|
||||
|
||||
Reference in new issue
Block a user