-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding profile_url field to user model (#19)
* Adding profile url to user model Signed-off-by: Kristen Armes <[email protected]> * Adding migration script Signed-off-by: Kristen Armes <[email protected]>
- Loading branch information
1 parent
4509bb0
commit bd47453
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
amundsen_rds/migrations/versions/a539c998cc1e_add_profile_url_column_to_users_table.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,24 @@ | ||
"""add profile url column to users table | ||
Revision ID: a539c998cc1e | ||
Revises: c194a2dc1240 | ||
Create Date: 2021-10-06 18:46:25.149618 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a539c998cc1e' | ||
down_revision = 'c194a2dc1240' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('users', sa.Column('profile_url', sa.String(length=320), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('users', 'profile_url') |
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