-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from NYPL/SFR-2054_PubProjectSourceFieldMigra…
…tion Sfr-2054_PubSourceFieldMigration
- Loading branch information
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
migrations/versions/54e57fb2e1c6_add_contract_source_to_records_and_items.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,26 @@ | ||
"""add publisher_project_source field to records and items | ||
Revision ID: 54e57fb2e1c6 | ||
Revises: e46b30dd3ff5 | ||
Create Date: 2024-06-26 15:04:24.092549 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '54e57fb2e1c6' | ||
down_revision = 'e46b30dd3ff5' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('records', sa.Column('publisher_project_source', sa.Unicode, index=True)) | ||
op.add_column('items', sa.Column('publisher_project_source', sa.Unicode, index=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('records', 'publisher_project_source') | ||
op.drop_column('items', 'publisher_project_source') |
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