Skip to content

Commit 0204522

Browse files
committed
migration
1 parent 377b43f commit 0204522

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"""new account_request_status column
2+
3+
Revision ID: de44e42e2e3b
4+
Revises: 742123f0933a
5+
Create Date: 2025-04-24 07:27:20.753638+00:00
6+
7+
"""
8+
9+
import sqlalchemy as sa
10+
from alembic import op
11+
12+
# revision identifiers, used by Alembic.
13+
revision = "de44e42e2e3b"
14+
down_revision = "742123f0933a"
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade():
20+
op.add_column(
21+
"users_pre_registration_details",
22+
sa.Column(
23+
"account_request_status",
24+
sa.Enum("PENDING", "APPROVED", "REJECTED", name="accountrequeststatus"),
25+
server_default=sa.text("'PENDING'::account_request_status"),
26+
nullable=False,
27+
),
28+
)
29+
30+
31+
def downgrade():
32+
op.create_index(
33+
"idx_projects_last_change_date_desc",
34+
"projects",
35+
[sa.text("last_change_date DESC")],
36+
unique=False,
37+
)

0 commit comments

Comments
 (0)