Skip to content

Commit

Permalink
extended social_auth_usersocialauth table.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Dec 7, 2017
1 parent 4829f2d commit 55c0b4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/galaxy/model/mapping.py
Expand Up @@ -142,9 +142,13 @@
model.UserAuthnAssociation.table = Table(
"social_auth_usersocialauth", metadata,
Column('id', Integer, primary_key=True),
Column('provider', VARCHAR(32)),
Column('uid', VARCHAR(255)),
Column('user_id', Integer, ForeignKey("galaxy_user.id"), index=True),
Column('uid', VARCHAR(255)),
Column('provider', VARCHAR(32)),
Column("state_token", TEXT, nullable=False, index=True),
Column("access_token", TEXT),
Column("id_token", TEXT),
Column("refresh_token", TEXT),
Column('extra_data', TEXT),
Column('lifetime', Integer),
Column('assoc_type', VARCHAR(64)))
Expand Down
8 changes: 6 additions & 2 deletions lib/galaxy/model/migrate/versions/0137_psa_tables.py
Expand Up @@ -48,9 +48,13 @@
social_auth_usersocialauth = Table(
"social_auth_usersocialauth", metadata,
Column('id', Integer, primary_key=True),
Column('provider', VARCHAR(32)),
Column('uid', VARCHAR(255)),
Column('user_id', Integer, ForeignKey("galaxy_user.id"), index=True),
Column('uid', VARCHAR(255)),
Column('provider', VARCHAR(32)),
Column("state_token", TEXT, nullable=False, index=True),
Column("access_token", TEXT),
Column("id_token", TEXT),
Column("refresh_token", TEXT),
Column('extra_data', TEXT),
Column('lifetime', Integer),
Column('assoc_type', VARCHAR(64)))
Expand Down

0 comments on commit 55c0b4b

Please sign in to comment.