Skip to content

Commit

Permalink
Create migration to add CANCELLING to StateType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
bunchesofdonald committed Dec 6, 2022
1 parent dcf6778 commit 57f86d8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/prefect/orion/database/migrations/MIGRATION-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Each time a database migration is written, an entry is included here with:

This gives us a history of changes and will create merge conflicts if two migrations are made at once, flagging situations where a branch needs to be updated before merging.

# Add `CANCELLING` to StateType enum
SQLite: None
Postgres: `50ab89b8fb35`

# Add infrastructure_pid to flow runs
SQLite: `7201de756d85`
Postgres: `5d526270ddb4`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""Add CANCELLING to state type enum
Revision ID: 50ab89b8fb35
Revises: 7201de756d85
Create Date: 2022-12-06 16:19:48.316823
"""
from alembic import op

# revision identifiers, used by Alembic.
revision = "50ab89b8fb35"
down_revision = "7201de756d85"
branch_labels = None
depends_on = None


def upgrade():
op.execute("ALTER TYPE state_type ADD VALUE IF NOT EXISTS 'PAUSED';")


def downgrade():
pass

0 comments on commit 57f86d8

Please sign in to comment.