|
5 | 5 | Create Date: 2025-09-25 20:22:55.535261 |
6 | 6 |
|
7 | 7 | """ |
| 8 | + |
8 | 9 | from typing import Sequence, Union |
9 | 10 |
|
10 | 11 | import sqlalchemy as sa |
11 | 12 | from alembic import op |
12 | 13 |
|
13 | 14 | # revision identifiers, used by Alembic. |
14 | | -revision: str = 'a59aeb0bd691' |
15 | | -down_revision: Union[str, None] = '95467f4c5c80' |
| 15 | +revision: str = "a59aeb0bd691" |
| 16 | +down_revision: Union[str, None] = "95467f4c5c80" |
16 | 17 | branch_labels: Union[str, Sequence[str], None] = None |
17 | 18 | depends_on: Union[str, Sequence[str], None] = None |
18 | 19 |
|
19 | 20 |
|
20 | 21 | def upgrade() -> None: |
21 | 22 | # ### commands auto generated by Alembic - please adjust! ### |
22 | | - op.drop_column('user_data', 'other_experience') |
23 | | - op.drop_column('user_data', 'loved_one_other_experience') |
24 | | - op.drop_column('user_data', 'other_treatment') |
25 | | - op.drop_column('user_data', 'loved_one_other_treatment') |
| 23 | + op.drop_column("user_data", "other_experience") |
| 24 | + op.drop_column("user_data", "loved_one_other_experience") |
| 25 | + op.drop_column("user_data", "other_treatment") |
| 26 | + op.drop_column("user_data", "loved_one_other_treatment") |
26 | 27 | # ### end Alembic commands ### |
27 | 28 |
|
28 | 29 |
|
29 | 30 | def downgrade() -> None: |
30 | 31 | # ### commands auto generated by Alembic - please adjust! ### |
31 | | - op.add_column('user_data', sa.Column('loved_one_other_treatment', sa.TEXT(), autoincrement=False, nullable=True)) |
32 | | - op.add_column('user_data', sa.Column('other_treatment', sa.TEXT(), autoincrement=False, nullable=True)) |
33 | | - op.add_column('user_data', sa.Column('loved_one_other_experience', sa.TEXT(), autoincrement=False, nullable=True)) |
34 | | - op.add_column('user_data', sa.Column('other_experience', sa.TEXT(), autoincrement=False, nullable=True)) |
| 32 | + op.add_column("user_data", sa.Column("loved_one_other_treatment", sa.TEXT(), autoincrement=False, nullable=True)) |
| 33 | + op.add_column("user_data", sa.Column("other_treatment", sa.TEXT(), autoincrement=False, nullable=True)) |
| 34 | + op.add_column("user_data", sa.Column("loved_one_other_experience", sa.TEXT(), autoincrement=False, nullable=True)) |
| 35 | + op.add_column("user_data", sa.Column("other_experience", sa.TEXT(), autoincrement=False, nullable=True)) |
35 | 36 | # ### end Alembic commands ### |
0 commit comments