-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase circulationevents.type field length to 50 (from 32) to aacco…
…modate new event types.
- Loading branch information
1 parent
13eb87b
commit f147b3c
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
alembic/versions/20241220_579786fecbf4_increase_circulation_event_type_field_.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,28 @@ | ||
"""Increase circulation event type field length | ||
Revision ID: 579786fecbf4 | ||
Revises: 603b8ebd6daf | ||
Create Date: 2024-12-20 06:30:30.148748+00:00 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "579786fecbf4" | ||
down_revision = "603b8ebd6daf" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.alter_column( | ||
"circulationevents", "type", existing_type=sa.VARCHAR(32), type_=sa.VARCHAR(50) | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.alter_column( | ||
"circulationevents", "type", existing_type=sa.VARCHAR(50), type_=sa.VARCHAR(32) | ||
) |
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