-
-
Notifications
You must be signed in to change notification settings - Fork 26
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 #1747 from florentcadot/feature/add-waypoints-exte…
…rnal-resources feat: add external_resources column to waypoints
- Loading branch information
Showing
5 changed files
with
134 additions
and
3 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
alembic_migration/versions/626354ffcda0_add_column_external_resources_to_waypoints.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,37 @@ | ||
"""add_column_external_resources_to_waypoints | ||
Revision ID: 626354ffcda0 | ||
Revises: 305b064bdf66 | ||
Create Date: 2024-02-18 08:36:44.714268 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '626354ffcda0' | ||
down_revision = '305b064bdf66' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
def upgrade(): | ||
op.add_column( | ||
'waypoints_locales', | ||
sa.Column( | ||
'external_resources', | ||
sa.String(), | ||
nullable=True), | ||
schema='guidebook') | ||
op.add_column( | ||
'waypoints_locales_archives', | ||
sa.Column( | ||
'external_resources', | ||
sa.String(), | ||
nullable=True), | ||
schema='guidebook') | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('waypoints_locales', 'external_resources', schema='guidebook') | ||
op.drop_column('waypoints_locales_archives', 'external_resources', schema='guidebook') |
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
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