Skip to content

Commit

Permalink
set length
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Apr 22, 2022
1 parent 6239e2f commit c190253
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects.mysql import LONGBLOB
from sqlalchemy_utils import UUIDType


Expand All @@ -39,9 +38,7 @@ def upgrade():
"key_value",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("resource", sa.String(32), nullable=False),
sa.Column(
"value", sa.LargeBinary().with_variant(LONGBLOB, "mysql"), nullable=False
),
sa.Column("value", sa.LargeBinary(length=2**31), nullable=False),
sa.Column("uuid", UUIDType(binary=True), default=uuid4),
sa.Column("created_on", sa.DateTime(), nullable=True),
sa.Column("created_by_fk", sa.Integer(), nullable=True),
Expand Down

0 comments on commit c190253

Please sign in to comment.