Skip to content

Commit

Permalink
feat: Adding profile_url field to user model (#19)
Browse files Browse the repository at this point in the history
* 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
kristenarmes authored Oct 7, 2021
1 parent 4509bb0 commit bd47453
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
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')
1 change: 1 addition & 0 deletions amundsen_rds/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class User(Base):
rk = Column(String(320, **INDEX_KEY_COLLATION_ARGS), primary_key=True)
email = Column(String(320), nullable=False)
is_active = Column(Boolean)
profile_url = Column(String(320))
first_name = Column(String(64))
last_name = Column(String(64))
full_name = Column(String(256))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import find_packages, setup

__version__ = '0.0.5'
__version__ = '0.0.6'


requirements = [
Expand Down

0 comments on commit bd47453

Please sign in to comment.