Skip to content

Commit 66eab73

Browse files
committed
Ensure input statistics is sane
1 parent 801b0a6 commit 66eab73

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SPDX-FileCopyrightText: 2024-2025 MTS PJSC
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""Truncate inputs with too much size in bytes
4+
5+
Revision ID: 8e8891273099
6+
Revises: 102502e85b2d
7+
Create Date: 2025-11-21 18:28:52.279644
8+
9+
"""
10+
11+
import sqlalchemy as sa
12+
from alembic import op
13+
14+
# revision identifiers, used by Alembic.
15+
revision = "8e8891273099"
16+
down_revision = "102502e85b2d"
17+
branch_labels = None
18+
depends_on = None
19+
20+
21+
def upgrade() -> None:
22+
op.execute(sa.text("UPDATE input SET num_bytes = NULL WHERE num_bytes >= 9223372036854775807"))
23+
24+
25+
def downgrade() -> None:
26+
pass

0 commit comments

Comments
 (0)