-
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.
Remove patron.last_loan_activity_sync
- Loading branch information
1 parent
1b2ce5f
commit e976011
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
alembic/versions/20240612_7ba553f3f80d_remove_patron_last_loan_activity_sync.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,32 @@ | ||
"""Remove Patron.last_loan_activity_sync | ||
Revision ID: 7ba553f3f80d | ||
Revises: 50746a3bd243 | ||
Create Date: 2024-06-12 00:53:37.497861+00:00 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "7ba553f3f80d" | ||
down_revision = "50746a3bd243" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.drop_column("patrons", "last_loan_activity_sync") | ||
|
||
|
||
def downgrade() -> None: | ||
op.add_column( | ||
"patrons", | ||
sa.Column( | ||
"last_loan_activity_sync", | ||
postgresql.TIMESTAMP(timezone=True), | ||
autoincrement=False, | ||
nullable=True, | ||
), | ||
) |
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