Skip to content

Commit ff1384e

Browse files
committed
add migrations
1 parent 2ffff66 commit ff1384e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"""Add hidden to response.
2+
3+
Revision ID: 4c92535dbbbd
4+
Revises: 481d2a7a6d6f
5+
Create Date: 2025-07-31 13:41:08.311239
6+
7+
"""
8+
9+
from typing import Sequence, Union
10+
11+
from alembic import op
12+
import sqlalchemy as sa
13+
import sqlmodel
14+
15+
# revision identifiers, used by Alembic.
16+
revision: str = "4c92535dbbbd"
17+
down_revision: Union[str, None] = "481d2a7a6d6f"
18+
branch_labels: Union[str, Sequence[str], None] = None
19+
depends_on: Union[str, Sequence[str], None] = None
20+
21+
22+
def upgrade() -> None:
23+
# ### commands auto generated by Alembic - please adjust! ###
24+
with op.batch_alter_table("response", schema=None) as batch_op:
25+
batch_op.add_column(
26+
sa.Column(
27+
"hidden", sa.Boolean(), server_default=sa.text("0"), nullable=False
28+
)
29+
)
30+
31+
# ### end Alembic commands ###
32+
33+
34+
def downgrade() -> None:
35+
# ### commands auto generated by Alembic - please adjust! ###
36+
with op.batch_alter_table("response", schema=None) as batch_op:
37+
batch_op.drop_column("hidden")
38+
39+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)