-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1305 when plan archived, its new plan has pointer to prior revis…
…ion on plan.parent_plan_revision_uuid
- Loading branch information
1 parent
b27ffc0
commit 70123ff
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
migrations/versions/bb76d2149316_add_parent_plan_revision_uuid_to_plan.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""add parent_plan_revision_uuid to plan | ||
Revision ID: bb76d2149316 | ||
Revises: 48074e6225c6 | ||
Create Date: 2024-02-16 23:22:02.230866 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "bb76d2149316" | ||
down_revision = "48074e6225c6" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table("plan", schema=None) as batch_op: | ||
batch_op.add_column( | ||
sa.Column("parent_plan_revision_uuid", sa.String(), nullable=True) | ||
) | ||
|
||
|
||
def downgrade(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters