-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Undo colin_event_id model changes (#3032)
- Loading branch information
1 parent
b902dcd
commit abad7a9
Showing
3 changed files
with
27 additions
and
117 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
legal-api/migrations/versions/f3b30f43aa86_undo_colin_event_ids_changes.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 @@ | ||
"""Undo colin_event_ids changes. | ||
Revision ID: f3b30f43aa86 | ||
Revises: 698885b80fc0 | ||
Create Date: 2024-10-21 11:09:24.413272 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'f3b30f43aa86' | ||
down_revision = '698885b80fc0' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.drop_constraint('colin_event_ids_batch_processing_id_fkey', 'colin_event_ids', type_='foreignkey') | ||
op.drop_column('colin_event_ids', 'batch_processing_id') | ||
op.drop_column('colin_event_ids', 'batch_processing_step') | ||
|
||
def downgrade(): | ||
op.add_column('colin_event_ids', sa.Column('batch_processing_id', sa.Integer(), nullable=True)) | ||
op.add_column('colin_event_ids', sa.Column('batch_processing_step', sa.Enum(name='batch_processing_step'), nullable=True)) | ||
op.create_foreign_key('colin_event_ids_batch_processing_id_fkey', 'colin_event_ids', 'batch_processing', ['batch_processing_id'], ['id']) |
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 was deleted.
Oops, something went wrong.