Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 1d01922

Browse files
add migration to rename task_id to uuid
1 parent 277c739 commit 1d01922

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""Rename task_id to uuid
2+
3+
Revision ID: c12374978a12
4+
Revises: 6d5f957d035c
5+
Create Date: 2024-10-11 11:44:29.159937
6+
7+
"""
8+
from typing import Sequence, Union
9+
10+
from alembic import op
11+
import sqlalchemy as sa
12+
13+
14+
# revision identifiers, used by Alembic.
15+
revision: str = 'c12374978a12'
16+
down_revision: Union[str, None] = '6d5f957d035c'
17+
branch_labels: Union[str, Sequence[str], None] = None
18+
depends_on: Union[str, Sequence[str], None] = None
19+
20+
21+
def upgrade() -> None:
22+
# ### commands auto generated by Alembic - please adjust! ###
23+
op.alter_column('tasks', 'task_id', new_column_name='uuid')
24+
# ### end Alembic commands ###
25+
26+
27+
def downgrade() -> None:
28+
pass

0 commit comments

Comments
 (0)