Skip to content

Commit bd47453

Browse files
authored
feat: Adding profile_url field to user model (#19)
* Adding profile url to user model Signed-off-by: Kristen Armes <karmes@lyft.com> * Adding migration script Signed-off-by: Kristen Armes <karmes@lyft.com>
1 parent 4509bb0 commit bd47453

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"""add profile url column to users table
2+
3+
Revision ID: a539c998cc1e
4+
Revises: c194a2dc1240
5+
Create Date: 2021-10-06 18:46:25.149618
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = 'a539c998cc1e'
14+
down_revision = 'c194a2dc1240'
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade():
20+
op.add_column('users', sa.Column('profile_url', sa.String(length=320), nullable=True))
21+
22+
23+
def downgrade():
24+
op.drop_column('users', 'profile_url')

amundsen_rds/models/user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class User(Base):
1818
rk = Column(String(320, **INDEX_KEY_COLLATION_ARGS), primary_key=True)
1919
email = Column(String(320), nullable=False)
2020
is_active = Column(Boolean)
21+
profile_url = Column(String(320))
2122
first_name = Column(String(64))
2223
last_name = Column(String(64))
2324
full_name = Column(String(256))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from setuptools import find_packages, setup
55

6-
__version__ = '0.0.5'
6+
__version__ = '0.0.6'
77

88

99
requirements = [

0 commit comments

Comments
 (0)