Skip to content

Commit 2605b73

Browse files
Hotfix: Align prod sharepoint (#341)
* chore: update submodules * chore(alembic): db upgrade * chore(fix): alembic downgrade bigint to int * chore: update submodules
1 parent 2e23a6e commit 2605b73

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""update integration sharepoint size dtype
2+
3+
Revision ID: 312568866ac4
4+
Revises: 3e6633b3fa0a
5+
Create Date: 2025-08-28 10:00:04.377743
6+
7+
"""
8+
9+
from alembic import op
10+
import sqlalchemy as sa
11+
12+
13+
# revision identifiers, used by Alembic.
14+
revision = "312568866ac4"
15+
down_revision = "3e6633b3fa0a"
16+
branch_labels = None
17+
depends_on = None
18+
19+
20+
def upgrade():
21+
# ### commands auto generated by Alembic - please adjust! ###
22+
op.alter_column(
23+
"sharepoint",
24+
"size",
25+
existing_type=sa.Integer(),
26+
type_=sa.BigInteger(),
27+
postgresql_using="size::bigint",
28+
schema="integration",
29+
)
30+
31+
32+
def downgrade():
33+
op.alter_column(
34+
"sharepoint",
35+
"size",
36+
existing_type=sa.BigInteger(),
37+
type_=sa.Integer(),
38+
postgresql_using="LEAST(size, 2147483647)::integer",
39+
schema="integration",
40+
)

submodules/model

Submodule model updated 1 file

0 commit comments

Comments
 (0)